{{-- --}}
NO: {{ $gate_pass->gate_pass_no }}
Date: {{ $gate_pass->date ? \Carbon\Carbon::parse($gate_pass->date)->format('d-M-Y h:i:s A') : '' }}

Corporate Office: Holding No 4/2 A, Plot 49 & 57 135 Gopalpur Munnu Nagar, Tongi, Gazipur Bangladesh. Tel: +88-02-9817461-63, FAX: 880-2-9817743

{{-- --}}
Name: {{ $gate_pass->user->name }}
Phone: {{ $gate_pass->user->phone ?? '' }}
Company: {{ $gate_pass->user->company->name ?? '' }}
Department: {{ $gate_pass->user->department->name ?? '' }}
@php $total_pkt_roll = 0; $total_quantity = 0; @endphp @if(auth::user()->id == $gate_pass->user_id) @endif
ID Buyer Style Description Destination Returnable Pkt/Roll Quantity
@foreach (json_decode($gate_pass->buyer_id) as $key => $buyerId) {{ $buyerId }}
@endforeach
@foreach (json_decode($gate_pass->style) as $key => $style) {{ $style }}
@endforeach
@foreach (json_decode($gate_pass->description) as $key => $description) {{ $description }}
@endforeach
@foreach (json_decode($gate_pass->destination) as $destination) @if ($destination == null) N/A
@else {{ $destination }}
@endif
@endforeach
@foreach (json_decode($gate_pass->returnable) as $returnable) @if ($returnable == 1) Returnable
@else Non-Returnable
@endif
@endforeach
@foreach (json_decode($gate_pass->pkt_roll) as $key => $pktRoll) {{ $pktRoll }}
@php $total_pkt_roll += $pktRoll; @endphp @endforeach
@foreach (json_decode($gate_pass->quantity) as $key => $quantity) {{ $quantity }}
@php $total_quantity += $quantity; @endphp @endforeach
Total {{ $total_pkt_roll }} {{ $total_quantity }}
{{--
@if (Auth::user()->role_id == 1 || Auth::user()->role_id == 3)
Team Leader Approval Status:
@csrf @php $status = ''; if ($gate_pass->team_leader_approval === 0) { $status = 'Pending'; } elseif ($gate_pass->team_leader_approval === 1) { $status = 'Approved'; } elseif ($gate_pass->team_leader_approval === 2) { $status = 'Rejected'; } @endphp
@endif @if (Auth::user()->role_id == 1 || Auth::user()->role_id == 4)
Manager Approval Status:
@csrf @php $status = ''; if ($gate_pass->manager_approval === 0) { $status = 'Pending'; } elseif ($gate_pass->manager_approval === 1) { $status = 'Approved'; } elseif ($gate_pass->manager_approval === 2) { $status = 'Rejected'; } @endphp
@endif @if (Auth::user()->role_id == 1 || Auth::user()->role_id == 5)
COO/CFO Approval Status:
@csrf @php $status = ''; if ($gate_pass->Management_approval === 0) { $status = 'Pending'; } elseif ($gate_pass->Management_approval === 1) { $status = 'Approved'; } elseif ($gate_pass->Management_approval === 2) { $status = 'Rejected'; } @endphp
@endif @if (Auth::user()->role_id == 1 || Auth::user()->role_id == 6)
Gate Approval Status:
@csrf @php $status = ''; if ($gate_pass->store_approval === 0) { $status = 'Pending'; } elseif ($gate_pass->store_approval === 1) { $status = 'Approved'; } elseif ($gate_pass->store_approval === 2) { $status = 'Rejected'; } @endphp
@endif
--}}
{{-- @if (Auth::user()->role_id == 1 || Auth::user()->role_id == 3)
Team Leader Approval Status:
@csrf @if ($gate_pass->team_leader_approval == 0) @elseif($gate_pass->team_leader_approval == 1) @else @endif
@endif --}} @if (Auth::user()->role_id == 1 || Auth::user()->role_id == 4)
Manager Approval Status:
@csrf @if ($gate_pass->manager_approval == 0) @elseif($gate_pass->manager_approval == 1) {{-- --}} Approved By: @if ($gate_pass->manager_approval == 1) @php $user = App\Models\User::where('id', $gate_pass->manager_id)->first(); $name = $user->name; $designation = $user->designation->name; $department = $user->department->name; $company = $user->company->name; @endphp {{ $name }}, {{ $designation }}, {{ $department }}, {{ $company }} {{ $gate_pass->manager_approval_date ? \Carbon\Carbon::parse($gate_pass->manager_approval_date)->format('d-M-Y h:i:s A') : '' }} @endif
@else @endif
@endif {{-- @if (Auth::user()->role_id == 1 || Auth::user()->role_id == 5)
COO/CFO Approval Status:
@csrf @if ($gate_pass->Management_approval == 0) @elseif($gate_pass->Management_approval == 1) @else @endif
@endif --}} @if (Auth::user()->role_id == 1 || Auth::user()->role_id == 6)
Gate Approval Status:
@csrf @if ($gate_pass->store_approval == 0) @elseif($gate_pass->store_approval == 1) @else @endif
@endif
Back {{-- Print --}} Print