@extends('layouts.backend') @section('content')

Documents database: {{$customer->legal_name}}: {{$getThis->global()->monthName($month)}} {{$year}} Back

@foreach ($types as $type) @php $tp = [ '1' => 'Export', '2' => 'Import', '3' => 'T1', '4' => 'Export + T1' ]; @endphp
{{$tp[$type->type_of_entry]}}
Job Reference
Customer Documents
AICO Documents
@foreach ($type->jobs as $job)
@foreach ($job->customerDocs as $doc) @php $file_icons = [ 'pdf' => 'pdf', 'jpg' => 'image', 'jpeg' => 'image', 'xls' => 'excel', 'xlsx' => 'excel', 'txt' => 'word', 'doc' => 'word', 'docx' => 'word', 'csv' => 'excel', 'ods' => 'excel', 'dbf' => 'excel' ]; $extension = pathinfo($doc->getDocument->originalName, PATHINFO_EXTENSION); $extension = strtolower($extension); $icon = $file_icons[$extension]; @endphp @endforeach
@foreach ($job->aicoDocs as $doc) @php $file_icons = [ 'pdf' => 'pdf', 'jpg' => 'image', 'jpeg' => 'image', 'xls' => 'excel', 'xlsx' => 'excel', 'txt' => 'word', 'doc' => 'word', 'docx' => 'word', 'csv' => 'excel', 'ods' => 'excel', 'dbf' => 'excel' ]; $extension = pathinfo($doc->getDocument->originalName, PATHINFO_EXTENSION); $extension = strtolower($extension); $icon = $file_icons[$extension]; @endphp @endforeach
@endforeach
@if(count($type->jobs) > 0)
{{$type->jobs->links('vendor.pagination.default')}}
 
@endif
@endforeach
@endsection