@if(count($customer_identities_document) > 1)
@if((isset($customer->id))&&(Sentinel::inRole('admin') || (Sentinel::hasAccess('admin.customerIdentities.store'))))

@endif
@if(isset($customer->identities)) @foreach($customer->identities as $key => $identity) @endforeach @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')}}
{{$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
@elseif(count($customer_identities_document) == 1)
@if((isset($customer->id))&&(Sentinel::inRole('admin') || (Sentinel::hasAccess('admin.customerIdentities.store'))))

@endif
@if(isset($customer->identities)) @foreach($customer->identities as $key => $identity) @endforeach @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 ($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
@foreach ($customer_identities_document as $customer_identities) @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 @endforeach
@else
@if((isset($customer->id))&&(Sentinel::inRole('admin') || (Sentinel::hasAccess('admin.customerIdentities.store'))))

@endif
@if(isset($customer->identities)) @foreach($customer->identities as $key => $identity) @endforeach @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 ($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
@endif
@include('admin.transactions.print_modal') @include('admin.customers.modal-customer-identity-add') @section('footer_scripts') @stop