@extends('lay.dnekcab.retsam') @section('title') {{ $page_title }} @endsection @section('css') @endsection @section('page-content')
@if(auth()->user()->hasPermissionTo('Protocol - Print Protocol')) @if($protocolWithPersonVehicle->status == 'archived' && $protocolWithPersonVehicle->action =='approve')
@endif @endif
@php $selectedIds = json_decode($protocolWithPersonVehicle->incoming_organization, true) ?? []; @endphp

{{ getHijriDate($protocolWithPersonVehicle->date) }}

{{ $protocolWithPersonVehicle->entrance}}

@if($protocolWithPersonVehicle->type == 'official') {{ __('protocol.official') }} @else {{ __('protocol.unofficial') }} @endif


{{ $protocolWithPersonVehicle->requestUser->name}}

{{ $protocolWithPersonVehicle->person_count }}

{{ $protocolWithPersonVehicle->vehicle_count }}

{{ getHijriDate($protocolWithPersonVehicle->created_at) }}

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


@if($protocolWithPersonVehicle->persons) @foreach($protocolWithPersonVehicle->persons as $person)
{{ $person->name }} ({{ $person->last_name }}) [ {{ __('protocol.persons.person_tazkera') }} tazkera_attachment) target="_blank" @endif> ]
{{ __('protocol.persons.person_father_name') }}: {{ $person->father_name }} {{ __('protocol.persons.organization') }}: {{ $person->organization->name }}
{{ __('protocol.persons.person_tazkera_number') }}: {{ $person->tazkera_number }} {{ __('protocol.persons.person_phone_number') }}: {{ $person->phone_number }}
@php $photoPath = public_path('assets/protocol/person/photo/' . $person->photo); @endphp Person image
@endforeach @endif

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


@if($protocolWithPersonVehicle->vehicles) @foreach($protocolWithPersonVehicle->vehicles as $vehicle)
{{ $vehicle->vehicle->name }} [@if($vehicle->type == 'car') {{ __('protocol.vehicles.car')}} @else {{ __('protocol.vehicles.motorcycle')}} @endif]
{{ __('protocol.vehicles.pallet_number') }}: {{ $vehicle->pallet_number }}{{ __('protocol.vehicles.color.header') }}: @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
@php $vehiclePath = public_path('assets/protocol/vehicle/' . $vehicle->vehicle_picture); @endphp Car image
@endforeach @endif

{{__('protocol.approval')}}


@endsection @section('js') @endsection