@extends('backEnd.admin.layouts.master') @section('title') Home @endsection @php $total_revenue = $data['total_revenue'] ?? 0; $total_customer = $data['total_customer'] ?? 0; $total_product = $data['total_product'] ?? 0; $total_staff = $data['total_staff'] ?? 0; $total_order = $data['total_order'] ?? 0; $total_hold_order = $data['total_hold_order'] ?? 0; $total_deliver_order = $data['total_deliver_order'] ?? 0; $total_process_order = $data['total_process_order'] ?? 0; $total_pend_pay_order = $data['total_pend_pay_order'] ?? 0; $total_cancel_order = $data['total_cancel_order'] ?? 0; $total_pending_delivery_orders = $data['total_pending_delivery_orders'] ?? 0; $total_pending_entry_orders = $data['total_pending_entry_orders'] ?? 0; $today_all_orders = $data['today_all_orders'] ?? 0; $today_hold_orders = $data['today_hold_orders'] ?? 0; $today_pend_pay_orders = $data['today_pend_pay_orders'] ?? 0; $today_process_orders = $data['today_process_orders'] ?? 0; $today_deliver_orders = $data['today_deliver_orders'] ?? 0; $today_cancel_orders = $data['today_cancel_orders'] ?? 0; $today_pending_delivery_orders = $data['today_pending_delivery_orders'] ?? 0; $today_pending_entry_orders = $data['today_pending_entry_orders'] ?? 0; $recent_orders = $data['recent_orders'] ?? collect([]); @endphp @section('css') @endsection @section('body')
@if(Auth::guard('admin')->check() || Auth::guard('manager')->check())
Total Revenue

{{$web_settings->currency_sign}} {{$total_revenue}}

@endif @if(Auth::guard('admin')->check() || Auth::guard('manager')->check())
Total Staff

{{$total_staff}}

@endif @if(Auth::guard('admin')->check() || Auth::guard('manager')->check())
Total Customer

{{$total_customer}}

@endif
Today's Report
Orders {{$today_all_orders}}
Processing {{$today_process_orders}}
Pending Delivery {{$today_pending_delivery_orders}}
Pending Payment {{$today_pend_pay_orders}}
On Hold {{$today_hold_orders}}
Canceled {{$today_cancel_orders}}
Completed {{$today_deliver_orders}}
Pending Entry {{$today_pending_entry_orders}}
Recent Orders
@if(Auth::guard('admin')->check() || Auth::guard('manager')->check()) @php($i=1) @if($recent_orders->count() > 0) @foreach($recent_orders as $item) @endforeach @else @endif @else @php($i=1) @if($recent_orders->count() > 0) @foreach($recent_orders as $item) @endforeach @else @endif @endif
SL. Date C. Name C. Phone Total Status
{{$i++}} {{date('d M',strtotime($item->order_date))}} {{$item->customer_name}} {{$item->customer_phone}} {{$web_settings->currency_sign}} {{$item->total}} @if($item->status==0) On Hold @endif @if($item->status==1) Completed @endif @if($item->status==2) Processing @endif @if($item->status==3) Pending Payment @endif @if($item->status==4) Canceled @endif @if($item->status==5) Pending Delivery @endif @if($item->status==6) Pending Entry @endif
No Order Found
{{$i++}} {{date('d M',strtotime($item->get_order->order_date))}} {{$item->get_order->customer_name}} {{$item->get_order->customer_phone}} {{$web_settings->currency_sign}} {{$item->get_order->total}} @if($item->get_order->status==0) On Hold @endif @if($item->get_order->status==1) Completed @endif @if($item->get_order->status==2) Processing @endif @if($item->get_order->status==3) Pending Payment @endif @if($item->get_order->status==4) Canceled @endif @if($item->get_order->status==5) Pending Delivery @endif @if($item->get_order->status==6) Pending Entry @endif
No Order Found
@endsection @section('js') @endsection