@extends('layouts.app')
@section('title', 'Dashboard Overview')
@section('page-title', 'Dashboard Overview')
@section('content')
Total Sales
${{ number_format($totalSales, 2) }}
{{ $salesChange }}% Than Last Month
Total Orders
${{ number_format($totalOrderAmount, 0) }} ({{ $totalOrders }} Invoice)
+{{ $orderChange }}% Than Last Month
Payment Complete
${{ number_format($totalCompletedPayments, 0) }}
+{{ $completedChange }}% Than Last Month
Payment Pending
${{ number_format($totalPendingPayments, 0) }}
{{ $pendingChange }}% Than Last Month
{{-- Charts & Widgets --}}
| Invoice ID |
Table Session |
Amount |
Status |
Date |
Active |
@forelse ($recentInvoices as $inv)
| #{{ $inv->id }} |
{{ $inv->table_name }} |
${{ number_format($inv->total, 2) }} |
@if ($inv->payment_status === 'paid')
Paid
@else
Pending
@endif
|
{{ date('d M Y - H:i A', strtotime($inv->created_at)) }} |
Create Sale
|
@empty
| No invoices found. |
@endforelse
Orders Items
@foreach ($summaryorders as $item)
-
{{ $item->name }}
{{ $item->total_amount }} (ចំនួន {{ $item->qty_sold }})
@endforeach
@endsection
@push('scripts')
@endpush