@extends('layouts.master') @section('title', 'Approval Management') @section('style') @endsection @section('script') @endsection @section('content') @include('layouts.sidebar') @include('layouts.header-sub')
@yield('title')

{{-- ================= Pending Approval ================= --}}

Pending Approval Requests

@if ($pendingOrders->isEmpty())

No pending approval requests.

@else
@foreach ($pendingOrders as $index => $order) @endforeach
No. Order Code Requester Request Date Status Action
{{ $index + 1 }} {{ $order->order_code }} {{ $order->order_customer_name }} {{ \Carbon\Carbon::parse($order->order_request_date)->format('d/m/Y') }} @if ($order->order_status_for_authorize == 'pending') Awaiting Authorize @else Awaiting Supervisor @endif View
@endif {{-- ================= Premium Requests (Admin only) ================= --}} @if (auth()->user()->hasRole('Admin') || auth()->user()->hasRole('AdminConsult'))

Premium Souvenir Requests

@if ($premiumItems->isEmpty())

No premium requests found.

@else
@foreach ($premiumItems as $index => $item) @endforeach
No. Order Code Product Quantity Requester Request Date Action
{{ $index + 1 }} {{ $item->order_code }} {{ $item->product_name }} {{ $item->quantity }} {{ $item->order_customer_name }} {{ \Carbon\Carbon::parse($item->order_request_date)->format('d/m/Y') }}
@csrf
@csrf
@endif @endif
@include('layouts.footer') @endsection