@extends('layouts.master') @section('title', 'Souvenir Request Summary Form') @section('script') @endsection @section('content') @include('layouts.sidebar') @include('layouts.header-sub') @yield('title') @csrf {{-- Order Code --}} เลขที่คำขอเบิก {{ $order->order_code }} {{-- Error --}} @if ($errors->any()) @foreach ($errors->all() as $error) {{ $error }} @endforeach @endif {{-- 🔥 แจ้ง Premium --}} @if ($hasPremium) กรุณาระบุวัตถุประสงค์สำหรับรายการ Premium เท่านั้น @endif {{-- TABLE --}} No. Image Name Qty Unit Price Total @foreach ($products as $i => $item) {{ $i + 1 }} @if ($item->product_type == '7') Premium @endif {{ $item->product_name }} {{ $item->quantity }} {{ number_format($item->product_current_unit_price, 2) }} {{ number_format($item->quantity * $item->product_current_unit_price, 2) }} {{-- 🔥 PURPOSE เฉพาะ Premium --}} @if ($item->product_type == '7') Purpose for {{ $item->product_name }} ({{ $item->quantity }} pcs) * {{ old('item_purpose.' . $item->order_item_id, $item->item_purpose ?? '') }} @endif @endforeach Total Qty {{ $totalQty }} Total {{ number_format($total, 2) }} {{-- FORM --}} Firstname - Lastname Division -- Select -- @foreach ($divisions as $d) user_division_id) == $d->school_division_id ? 'selected' : '' }}> {{ $d->school_division_name_en }} @endforeach Email Overall Purpose (optional) Request Date Receive Date Use Date {{-- DELIVERY --}} Delivery Method Self Pickup {{ old('order_address', $order->order_address) }} Send to Division {{-- SUBMIT --}} Submit Request Cancel @include('layouts.footer') @endsection