@if(Sentinel::inRole('admin') || Sentinel::hasAccess('mof.transaction.remove_document')) @endif @forelse($transactionDocuments as $document) @php $display = true; @endphp @if(Sentinel::inRole('admin')) @php $display = true; @endphp @elseif($document->document_type_id == 11) @php $display = false; @endphp @endif @if($display) @endif @empty @endforelse
{{Lang::get('vehicle.date')}} {{Lang::get('vehicle.customer_name')}} {{Lang::get('vehicle.document_name')}} {{Lang::get('vehicle.document_type')}} {{Lang::get('vehicle.updated_by')}}{{Lang::get('vehicle.action')}}
{{ Carbon\Carbon::parse($document->created_at)->format('d-m-Y h:i a') }} @if(isset($document->transaction->buyer_id)) {{ $document->transaction->buyer->full_name }} @endif @if($document->auto_generated == 'Y' && $document->transaction->status == "PAID" || $document->auto_generated == 'N') {{$document->document_name}} @else

{{ $document->document_name }}

@endif
@if(isset($document->transaction->seller)) {{ $document->transaction->seller->full_name }} {{ isset($document->documentType->Name)? $document->documentType->Name:'' }} @endif @isset($document->updatedBy){{ $document->updatedBy->full_name }}@endisset @if($document->auto_generated!='Y' && Sentinel::inRole('admin') || $document->auto_generated!='Y' && Sentinel::hasAccess('mof.transaction.remove_document')) id) }}" data-toggle="modal" data-target="#delete-document-modal"> @endif
{{Lang::get('property.documents_are_not_found')}}