@extends('admin.layout') @section('content')

Dashboard

@foreach(['orders'=>'Orders','pending'=>'Pending','review'=>'Payment Review','confirmed'=>'Confirmed','revenue'=>'Revenue'] as $k=>$label)
{{$label}}

{{ $k==='revenue'?'৳'.number_format($stats[$k],2):$stats[$k] }}

@endforeach

Orders

@foreach($orders as $o)@endforeach
CodeCustomerPaymentTotalStatusAction
{{ $o->order_code }}{{ $o->customer_name }}
{{ $o->phone }}
{{ strtoupper($o->payment_method) }}
{{ $o->payment_status }}
৳{{ number_format($o->total,2) }}{{ $o->status }}View
{{ $orders->links() }}

Add Product

@csrf

Products

@foreach($products as $p)@csrf@endforeach
NamePriceActiveUpdate
active)>
@csrf

Coupons

@csrf
@foreach($coupons as $c)@endforeach
CodeTypeValueUsed
{{ $c->code }}{{ $c->discount_type }}{{ $c->discount_value }}{{ $c->used_count }}
@csrf

Automation Logs

@foreach($logs as $l)@endforeach
TimeOrderEventChannelStatus
{{ $l->created_at }}{{ $l->order_id }}{{ $l->event_name }}{{ $l->channel }}{{ $l->status }}
@endsection