{{-- resources/views/dashboard/user.blade.php --}} @extends('layouts.app') @section('page-title', 'User Dashboard') @push('styles') @endpush @section('content')
Sales: ৳{{ number_format($totalSales,2) }}
Payment: ৳{{ number_format($totalPayment,2) }}
Due: ৳{{ number_format($totalDue,2) }}
| Method | Amount |
|---|---|
| {{ $method ?: 'Other' }} | ৳{{ number_format($amt,2) }} |
| Total | ৳{{ number_format($cashBy->sum(),2) }} |
| Date | Qty | Sales | COGS |
|---|---|---|---|
| {{ $day }} | {{ $rows->sum('qty') }} | ৳{{ number_format($rows->sum('sales'),2) }} | ৳{{ number_format($rows->sum('cogs'),2) }} |
| Segment | Qty | Amount | KPI | Revenue | Achiv (%) |
|---|---|---|---|---|---|
| {{ $seg }} | {{ $rows->sum('qty') }} | ৳{{ number_format($rows->sum('amount'),2) }} | {{ number_format($rows->sum('kpi'),2) }} | ৳{{ number_format($rows->sum('revenue'),2) }} | {{ number_format($rows->avg('achiv'),2) }}% |
| Date | Voucher | Details | Type | Method | Amount |
|---|---|---|---|---|---|
| {{ $transaction->date->format('d M') }} | {{ $transaction->voucher_no }} |
{{ Str::limit($transaction->details, 25) }} | @if($transaction->type == 'income') Income @elseif($transaction->type == 'expense') Expense @else Transfer @endif | @if($transaction->payment_method == 'cash') 💵 Cash @elseif($transaction->payment_method == 'bank') 🏦 {{ $transaction->bankAccount?->bank_name ?? 'Bank' }} @else 📱 {{ $transaction->digitalPayment?->provider ?? 'Digital' }} @endif | {{ $transaction->type == 'income' ? '+' : '-' }}৳{{ number_format($transaction->amount, 2) }} |
|
No transactions found + Add First Transaction |
|||||
All products stocked!
No low stock alerts