@extends('layouts.app') @section('page-pretitle', __('Management')) @section('page-title', __('Edit Company')) @section('content') @if ($errors->any()) @endif

{{ __('Edit Company') }}

@csrf @method('PUT')
{{-- --}}

{{ __('Uploaded Files') }}

@if ($company->files->isNotEmpty())
    @php $fileNumber = 1; @endphp @foreach ($company->files as $file) @php $ext = pathinfo($file->file_path, PATHINFO_EXTENSION); @endphp @if (in_array($ext, ['pdf', 'jpg', 'jpeg', 'png']))
  1. {{ $fileNumber++ }}.
    @if (Str::endsWith($file->file_path, 'pdf')) @elseif (Str::endsWith($file->file_path, ['jpg', 'jpeg', 'png'])) @else @endif

    {{ $file->original_name ?? basename($file->file_path) }}

  2. @endif @endforeach
@else

{{ __('No files uploaded') }}

@endif

{{ __('Upload New Images or Documents') }}

{{ __('Allowed types: PDF, JPG, PNG. You can upload multiple files.') }}
@endsection @section('scripts') @endsection