@extends('admin.layouts.master') @section('title', __('admin.attachments.create_title')) @section('content') @php function getCategoryIcon($category) { return match($category) { 'contract' => 'ti-file-text', 'quotation' => 'ti-file-dollar', 'invoice' => 'ti-receipt-2', 'receipt' => 'ti-receipt', 'drawing' => 'ti-blueprint', 'photo' => 'ti-photo', 'document' => 'ti-file', 'other' => 'ti-paperclip', default => 'ti-file' }; } @endphp

{{ __('admin.attachments.create_title') }}

{{ __('admin.attachments.upload_description') }}

{{ __('admin.actions.back_to_list') }}
@if(session('success')) @endif @if(session('error')) @endif
{{ __('admin.attachments.form_title') }}
@csrf
@error('project_id')
{{ $message }}
@enderror
@error('stage_id')
{{ $message }}
@enderror
@foreach($categories as $category)
@endforeach
@error('category')
{{ $message }}
@enderror
{{ __('admin.attachments.drag_drop_title') }}

{{ __('admin.attachments.drag_drop_description') }}

@error('attachment')
{{ $message }}
@enderror {{ __('admin.attachments.file_restrictions') }}
{{ __('admin.attachments.notes_help') }} @error('notes')
{{ $message }}
@enderror
{{ __('admin.actions.cancel') }}
{{ __('admin.attachments.upload_tips') }}
  • {{ __('admin.attachments.tip_descriptive_names') }} {{ __('admin.attachments.tip_descriptive_names_help') }}
  • {{ __('admin.attachments.tip_organize') }} {{ __('admin.attachments.tip_organize_help') }}
  • {{ __('admin.attachments.tip_add_notes') }} {{ __('admin.attachments.tip_add_notes_help') }}
  • {{ __('admin.attachments.tip_file_size') }} {{ __('admin.attachments.tip_file_size_help') }}
{{ __('admin.attachments.supported_formats') }}
{{ __('admin.attachments.images') }}
JPG PNG WebP
{{ __('admin.attachments.documents') }}
PDF DOC DOCX
{{ __('admin.attachments.spreadsheets') }}
XLS XLSX
{{ __('admin.attachments.presentations') }}
PPT PPTX
{{ __('admin.attachments.archives') }}
ZIP RAR
@endsection @section('scripts') @endsection