@if(count($customer_identities_document) > 1)
@if((isset($customer->id))&&(Sentinel::inRole('admin') || (Sentinel::hasAccess('admin.customerIdentities.store'))))
@endif
{{Lang::get('customer.type')}} |
{{Lang::get('customer.number')}} |
{{Lang::get('customer.issue_date')}} |
{{Lang::get('customer.expiry_date')}} |
{{Lang::get('customer.country')}} |
{{Lang::get('customer.action')}} |
@if(isset($customer->identities))
@foreach($customer->identities as $key => $identity)
{{$identity->id_type}}
|
{{$identity->id_number}} |
{{ isset($identity->date_of_issue) ? Carbon\Carbon::parse($identity->date_of_issue)->format('d-m-Y') : '' }} |
{{isset($identity->expiry_date) ?Carbon\Carbon::parse($identity->expiry_date)->format('d-m-Y') : '' }} |
{{$identity->issuing_country}} |
@if((Sentinel::inRole('admin')) || (Sentinel::hasAccess('admin.customerIdentities.edit') && Sentinel::hasAccess('admin.customerIdentities.update')))
@endif
@if((Sentinel::inRole('admin')) || (Sentinel::hasAccess('admin.customerIdentities.delete')))
@endif
@if($identity->document_id == '' || $identity->document_id == null)
@endif
|
@endforeach
@endif
@foreach($customer->identities as $key => $identity)
@if ($loop->first)
@endif
@endforeach
@elseif(count($customer_identities_document) == 1)
@if((isset($customer->id))&&(Sentinel::inRole('admin') || (Sentinel::hasAccess('admin.customerIdentities.store'))))
@endif
{{Lang::get('customer.id_preview')}} |
{{Lang::get('customer.type')}} |
{{Lang::get('customer.number')}} |
{{Lang::get('customer.issue_date')}} |
{{Lang::get('customer.expiry_date')}} |
{{Lang::get('customer.country')}} |
{{Lang::get('customer.action')}} |
@if(isset($customer->identities))
@foreach($customer->identities as $key => $identity)
@if ($identity->document_id != null)
@if($identity->document_type == 'pdf')
@if($identity->document_id == '' || $identity->document_id == null)
@else
@endif
@else
@if($identity->document_id == '' || $identity->document_id == null)
@else
@endif
@endif
@endif
|
{{$identity->id_type}}
|
{{$identity->id_number}} |
{{ isset($identity->date_of_issue) ? Carbon\Carbon::parse($identity->date_of_issue)->format('d-m-Y') : '' }} |
{{isset($identity->expiry_date) ?Carbon\Carbon::parse($identity->expiry_date)->format('d-m-Y') : '' }} |
{{$identity->issuing_country}} |
@if((Sentinel::inRole('admin')) || (Sentinel::hasAccess('admin.customerIdentities.edit') && Sentinel::hasAccess('admin.customerIdentities.update')))
@endif
@if((Sentinel::inRole('admin')) || Sentinel::hasAccess('admin.customerIdentities.delete'))
@endif
@if($identity->document_id == '' || $identity->document_id == null)
@endif
|
@endforeach
@endif
@else
@if((isset($customer->id))&&(Sentinel::inRole('admin') || (Sentinel::hasAccess('admin.customerIdentities.store'))))
@endif
@endif
@include('admin.transactions.print_modal')
@include('admin.customers.modal-customer-identity-add')
@section('footer_scripts')