@extends('admin.layouts.app') @section('title', 'Orders Page') @push('styles') @endpush @php $orderAmountSum = App\Models\Order::sum('total'); @endphp @section('admin_content')
S/N | Date | Order No | Name | {{--Phone | --}} {{--Address | --}}Amount | Status | Action | Total : | ৳ {{ $orderAmountSum }} | {{----}} | @foreach ($orders as $key => $item) |
---|---|---|---|---|---|---|---|---|---|
{{ $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 | --}}visibility |