@extends('layouts.admin.master') @section('title') Bulk Orders @endsection @section('body')
| # | Customer | Books Ordered | Gifting | Source | Date | Status | Details |
|---|---|---|---|---|---|---|---|
| #{{ $order->id }} | {{-- CUSTOMER --}}
{{ $order->customer_name }}
|
{{-- BOOKS --}}
@foreach($items as $item)
π {{ $item['title'] ?? 'β' }}
Γ{{ $item['qty'] ?? 1 }}
@endforeach
Total: {{ $totalQty }} copies
|
{{-- GIFTING --}}
@if($order->gifting)
π Gift
@if($order->gift_note)
"{{ Str::limit($order->gift_note, 40) }}"
@endif
@else
β
@endif
|
{{-- SOURCE --}}
@if($order->source === 'ai_bot') π€ AI Bot @elseif($order->source === 'form') π Form @elseif($order->source === 'whatsapp') π¬ WhatsApp @else {{ $order->source }} @endif | {{-- DATE --}}
{{ $order->created_at->format('d M Y') }} {{ $order->created_at->format('h:i A') }} |
{{-- STATUS --}}
{{-- DETAILS --}} |