@extends('admin.layouts.app') @section('title', 'Orders Page') @push('styles') @endpush @php $orderAmountSum = App\Models\Order::sum('total'); @endphp @section('admin_content')

All Orders

{{-- --}} {{-- --}} {{-- --}} @foreach ($orders as $key => $item) {{-- --}} {{-- --}} {{-- --}} @endforeach
S/N Date Order No NamePhoneAddressAmount Status Action
Total : ৳ {{ $orderAmountSum }}
{{ $key+1 }} {{ $item->created_at->format('d/m/Y') }} {{ $item->order_id }} {{ $item->billing->name }}{{ $item->billing->phone }}{{ $item->billing->address }}{{ $item->sub_total }} @if($item->status == 'pending') Pending @else Received @endif
@csrf {{-- --}}
visibility
@csrf @method('DELETE')
@endsection @push('scripts') @endpush