@include('reports.style') Transaction Report - {{ $year }}

Transaction Report - Year {{ $year }}

ช่วงวันที่: {{ $startDate }} ถึง {{ $endDate }}

สรุปภาพรวม

สรุปรายเดือน

@foreach ($monthlyDetails as $month => $data) @endforeach
เดือน จำนวนคำสั่งซื้อ มูลค่ารวม (บาท)
{{ \Carbon\Carbon::createFromDate(null, $month, 1)->locale('th')->translatedFormat('F') }} {{ $data['total_transactions'] }} {{ number_format($data['order_total_price'], 2) }}
@if ($isSearching)
รายการทั้งหมด
@php $no = 1; @endphp @foreach ($transactions as $order) {{-- เลขที่เบิก --}} @endforeach
No. เลขที่เบิก รายการของที่ระลึก วันที่เบิก ชื่อผู้เบิก หน่วยงาน จำนวนที่เบิก
{{ $no++ }} {{ $order->order_code ?? $order->order_id }} @if (isset($order->products) && count($order->products) > 0)
    @foreach ($order->products as $product)
  • {{ $product->product_name }} ({{ $product->quantity }})
  • @endforeach
@else - @endif
{{ \Carbon\Carbon::parse($order->created_at)->format('d/m/Y') }} {{ $order->order_customer_name ?? $order->customer_name }} {{ $order->department_name ?? '-' }} @if (isset($order->products) && count($order->products) > 0) {{ $order->products->sum('quantity') }} @else - @endif
@else @endif