@extends('layouts.app') @section('content')

{{ $company->name ?? 'Your Company Name' }}

{{ $company->address ?? 'Main Susan Road Madina Town' }}
{{ $company->phone ?? '0300-6638044' }}

{{ now()->format('l, F d, Y') }}

Financial Year: {{ $financialYear ?? 'July 2025 - June 2026' }}

Rs. {{ number_format($todayPurchase ?? 0) }}

Today's Purchase

Rs. {{ number_format($todaySale ?? 0) }}

Today's Sale

Rs. {{ number_format($cashBalance ?? 0) }}

Cash Balance

Rs. {{ number_format($bankBalance ?? 0) }}

Bank Balance

Rs. {{ number_format($totalReceivable ?? 0) }}

Total Receivable

Rs. {{ number_format($totalPayable ?? 0) }}

Total Payable

Rs. {{ number_format($stockValue ?? 0) }}

Stock Value

Rs. {{ number_format($monthlyProfit ?? 0) }}

Monthly Profit

Recent Transactions

View All
@forelse($recentTransactions ?? [] as $transaction) @empty @endforelse
Date Type Party Amount
{{ $transaction->date->format('d M') }} @php $type = class_basename($transaction->transactionable_type ?? ''); @endphp {{ $type ?: 'Entry' }} {{ $transaction->account->name ?? '-' }} Rs. {{ number_format($transaction->debit ?: $transaction->credit) }}
No recent transactions

Quick Actions

Low Stock Items

View Stock
@forelse($lowStockItems ?? [] as $item) @empty @endforelse
Item Current Stock Min Level
{{ $item->name }} {{ $item->current_stock }} {{ $item->unit }} {{ $item->min_stock }} {{ $item->unit }}
All items are in stock

Top Customers

View All
@forelse($topCustomers ?? [] as $sale) @empty @endforelse
Customer Total Sales Balance
{{ $sale->party->name ?? 'Unknown' }} Rs. {{ number_format($sale->total) }} -
No customer data yet
@endsection