@extends('admin.layouts.app') @section('page-title',$currentPage) @push('styles')@endpush @section('content') @php($module = $type === 'order' ? 'orders' : 'customers')
{{ session('status') }}
@endif @if($errors->any()){{ $error }}
@endforeach| Reference | Name | Contact | Status | {{ $type === 'order' ? 'Total (BDT)' : 'Account type' }} | Action |
|---|---|---|---|---|---|
| {{ $type === 'order' ? $row->code() : 'CU'.str_pad((string)$row->id,6,'0',STR_PAD_LEFT) }} | {{ $type === 'order' ? $row->customer_name : $row->name }} | {{ $type === 'order' ? $row->customer_phone : $row->email }} | {{ $type === 'order' ? ucwords(str_replace('_',' ',$row->status)) : ($row->is_active ? 'Active' : 'Suspended') }} | {{ $type === 'order' ? number_format($row->total / 100,2) : ucfirst($row->account_type) }} | Details |
| No saved {{ $module }} match this search. | |||||
| Product / SKU | Colour / Size | Quantity | Rate (BDT) |
|---|---|---|---|
| {{ $item['name'] ?? '' }}{{ $item['sku'] ?? '' }} | {{ $item['colour'] ?? '' }} / {{ $item['size'] ?? '' }} | {{ $item['quantity'] ?? 0 }} | {{ number_format(($item['unit_price'] ?? 0) / 100,2) }} |
| Date | Before → After | Reason |
|---|---|---|
| {{ $event->created_at }} | {{ json_decode($event->before,true)['status'] }} → {{ json_decode($event->after,true)['status'] }} | {{ $event->reason }} |
| No status changes recorded. | ||
Saved database records. Storefront demo checkout/account records are separate until their authenticated API integration is completed.