@if(Sentinel::inRole('admin') || Sentinel::hasAccess('mof.transaction.remove_document')) @endif @if(sizeof($transactionDocuments)>0) @foreach($transactionDocuments as $document) @if (!in_array($document->documentType->Name, $courtRoleDocuments) || Sentinel::inRole('admin') || Sentinel::inRole('court') ) @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 @endif @endforeach @else @endif
{{Lang::get('property.date')}} {{Lang::get('property.customer_name')}} {{Lang::get('property.document_name')}} {{Lang::get('property.document_type')}} {{Lang::get('property.updated_by')}}{{Lang::get('property.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->full_name)? $document->updatedBy->full_name: ''}} @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')}}