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

{{$title}}

{{$customer->name ?? null}}
{{$customer->address ?? null }}
{{$customer->customerTypeName ?? null}}
{{$customer->contact_person_accounts ?? null}}
{{$customer->email ?? null}}
{{$customer->phone_accounts ?? null}}
{{$customer->contact_person_operations ?? null}}
{{$customer->email_operations ?? null}}
{{$customer->phone_operations ?? null}}

{{__('app.documents')}}

@foreach ($customer->documents as $document) @php $isExpired = isset($document->expiry_date) ? \Carbon\Carbon::parse($document->expiry_date)->lt(\Carbon\Carbon::today()) : ''; @endphp @endforeach
{{__('app.documents')}} {{__('app.expiry')}} {{__('app.uploaded_by')}} {{__('app.created_date_time')}} {{__('app.status')}} {{__('app.action')}}
{{$document->mandatoryDocument->name ?? null}} {{isset($document->expiry_date) ? $document->expiry_date->format('m/d/Y') : null}} {{$document->uploadedBy->name ?? null}} {{isset($document->uploaded_date_time) ? $document->uploaded_date_time->format('m/d/Y, h:i A') : null}} @if($isExpired)Expired @else Active @endif
@endsection