@extends('layouts.app') @section('title', 'Dashboard · ' . ($appSettings['shop_name'] ?? 'Saai Digital')) @section('content')

Dashboard

Overview of standard bookings, production jobs, and monthly collections.

@if(auth()->user()->hasMenu('reports')) bar_chart Payment Reports @endif @if(auth()->user()->hasMenu('bookings')) add_circle New Booking @endif
Today's Bookings receipt_long

{{ $todayBookings }}

Total: {{ $totalOrders }}
Active Print Jobs print

{{ $pendingJobs }}

Delivered: {{ $completedJobs }}
Today's Collection payments

₹{{ number_format($todayCollection, 2) }}

Customers: {{ $totalCustomers }}
This Month Collected account_balance_wallet

₹{{ number_format($monthlyCollection, 2) }}

Due: ₹{{ number_format($monthlyBalance, 2) }}

Recent Standard Bookings

Latest orders and payment status

@if(auth()->user()->hasMenu('bookings')) View all arrow_forward @endif
@forelse($recentBookings as $b) @php $paid = (float) ($b->payments?->advance_amount ?? 0); $bal = max(0, (float) $b->grand_total - $paid); @endphp @empty @endforelse
Booking No Date Customer Job Name Total Paid Balance Status
{{ $b->booking_no }} {{ date('d-m-Y', strtotime($b->booking_date)) }} {{ $b->customer?->name ?? $b->customer_name }} {{ $b->job_name ?? '-' }} ₹ {{ number_format($b->grand_total, 2) }} ₹ {{ number_format($paid, 2) }} ₹ {{ number_format($bal, 2) }} @if($b->status === 'Confirmed') Confirmed @else Pending @endif
No bookings recorded yet.
@endsection