@extends('backend.layout.master-tailwind') @section('title', __('File Extension Settings')) @section('admin_styles') @endsection @section('content')

{{ __('File Extension Settings') }}

{{ __('Configure allowed file types per upload context and maximum upload size') }}

@if($errors->any())
@foreach($errors->all() as $error)
{{ $error }}
@endforeach
@endif @php $allExtensions = [ 'image' => ['png','jpg','jpeg','gif','bmp','webp','svg','tiff','ico','heic','avif'], 'document' => ['pdf','doc','docx','txt','rtf','odt','md','csv','xlsx','xls','ods','ppt','pptx','odp','key'], 'archive' => ['zip','rar','7z','tar','gz','bz2'], 'audio' => ['mp3','wav','aac','ogg','flac','m4a','wma'], 'video' => ['mp4','avi','mov','mkv','wmv','flv','webm','m4v'], ]; $fileSizes = ['1024','2048','3072','4096','5120','10240','20480','30720','40960','51200','102400','204800','307200','409600','512000','1048576','2097152']; $contexts = [ 'chat' => ['label' => __('Chat Attachments'), 'icon' => 'ti tabler-message-2', 'key' => 'chat_extensions', 'var' => $chat_extensions, 'desc' => __('Files users can send in live chat messages.')], 'job' => ['label' => __('Job Attachments'), 'icon' => 'ti tabler-briefcase', 'key' => 'job_extensions', 'var' => $job_extensions, 'desc' => __('Files clients can attach when posting or applying for jobs.')], 'order' => ['label' => __('Order Deliverables'), 'icon' => 'ti tabler-package', 'key' => 'order_extensions', 'var' => $order_extensions, 'desc' => __('Files freelancers can upload when delivering order work.')], ]; @endphp
@csrf {{-- Per-context extension cards --}} @foreach($contexts as $ctxKey => $ctx)
{{ $ctx['label'] }}

{{ $ctx['desc'] }}

@foreach($allExtensions as $typeLabel => $typeExts)
@endforeach
@endforeach {{-- Max upload size --}}
{{ __('Max Upload File Size') }}
@endsection @section('script') @endsection