@php $i = 0; $j = 0; @endphp

{{__('protocol.persons.exist_header')}}


@if($protocolPerson->isNotEmpty())
@if(auth()->user()->hasPermissionTo('Protocol - Delete Protocol')) @endif @foreach($protocolPerson as $person) @php $i++; $personPhotoPath = public_path('assets/protocol/person/photo/'.$person->protocol_id.'/'.$person->photo); @endphp @if(auth()->user()->hasPermissionTo('Protocol - Delete Protocol')) @endif @endforeach
{{ __('protocol.no')}} {{ __('protocol.persons.person_photo')}} {{ __('protocol.persons.person_name')}} {{ __('protocol.persons.person_father_name')}} {{ __('protocol.persons.organization')}} {{ __('protocol.persons.person_last_name')}} {{ __('protocol.persons.person_tazkera_number')}} {{ __('protocol.persons.person_phone_number')}} {{ __('protocol.persons.person_tazkera')}} {{ __('protocol.created_date')}}
{{ $i }} {{ $person->photo }} {{$person->name}} {{$person->father_name}} {{$person->organization->name}} {{$person->last_name}} {{$person->tazkera_number}} {{$person->phone_number}} tazkera_attachment != null) target="_blank" @endif> {{ getHijriDate($person->created_at) }}
@else
@endif

{{__('protocol.vehicles.exist_header')}}


@if($protocolVehicle->isNotEmpty())
@if(auth()->user()->hasPermissionTo('Protocol - Delete Protocol')) @endif @foreach($protocolVehicle as $vehicle) @php $j++; $vehicleImagePath = public_path('assets/protocol/vehicle/'.$vehicle->protocol_id.'/'.$vehicle->vehicle_picture); @endphp @if(auth()->user()->hasPermissionTo('Protocol - Delete Protocol')) @endif @endforeach
{{ __('protocol.no')}} {{ __('protocol.vehicles.image')}} {{ __('protocol.vehicles.type')}} {{ __('protocol.vehicles.brand')}} {{ __('protocol.vehicles.pallet_number')}} {{ __('protocol.vehicles.color.header')}} {{ __('protocol.created_date')}}
{{ $j }} {{ $vehicle->vehicle_picture }} @if($vehicle->type == 'car') {{ __('protocol.vehicles.car') }} @else {{ __('protocol.vehicles.motorcycle') }} @endif {{$vehicle->vehicle->name}} {{$vehicle->pallet_number}} @switch($vehicle->color) @case('black') {{ __('protocol.vehicles.color.black') }} @break @case('white') {{ __('protocol.vehicles.color.white') }} @break @case('silver') {{ __('protocol.vehicles.color.silver') }} @break @case('gray') {{ __('protocol.vehicles.color.gray') }} @break @case('red') {{ __('protocol.vehicles.color.red') }} @break @case('blue') {{ __('protocol.vehicles.color.blue') }} @break @case('green') {{ __('protocol.vehicles.color.green') }} @break @case('yellow') {{ __('protocol.vehicles.color.yellow') }} @break @default @endswitch {{ getHijriDate($vehicle->created_at) }}
@else
@endif