@extends('layouts.app') @section('title', __('app.dashboard')) @section('content')
@can('dashboard.can.view.widget.cards')

Today Sale (Net)

{{ $todaySale }}

Customer Due Payments

{{ $totalReceivable }}

Supplier Balances

{{ $supplierBalances['payable'] }}

To Pay

{{ $supplierBalances['receivable'] }}

To Receive

Today Purchase (Net)

{{ $todayPurchase }}

This Month Expense

{{ $thisMonthExpense }}

Total Stock

{{ $totalStock }}

Total Stock Worth

{{ $totalStockWorth }}

Today Return

{{ $todayReturn }}

@endcan
@can('dashboard.can.view.sale.vs.purchase.bar.chart')
{{ __('sale.sale_vs_purchase') }}
{{ __('purchase.purchase_bills') }} {{ __('sale.sale_invoices') }}
@endcan @can('dashboard.can.view.trending.items.pie.chart')
{{ __('item.trending') }}
    @foreach($trendingItems as $item)
  • {{ $item['name'] }} {{ $formatNumber->formatQuantity($item['total_quantity']) }}
  • @endforeach
@endcan
@can('dashboard.can.view.recent.invoices.table')
{{ __('sale.recent_invoices') }}
@can('sale.invoice.view') @endcan
@foreach($recentInvoices as $recent) @php $returnTotal = $recent->saleReturn->sum('grand_total'); if($returnTotal > 0){ $class = 'info'; $message = ($returnTotal >= $recent->grand_total) ? 'Returned' : 'Partial Return'; } else if($recent->paid_amount > 0 && $recent->paid_amount < $recent->grand_total){ $class = 'warning'; $message = 'Partial'; } else if($recent->paid_amount >= $recent->grand_total){ $class = 'success'; $message = 'Paid'; }else{ $class = 'danger'; $message = 'Unpaid'; } @endphp @endforeach
{{ __('sale.invoice_date') }} {{ __('sale.code') }} {{ __('customer.name') }} {{ __('app.grand_total') }} {{ __('app.balance') }} {{ __('app.status') }}
{{ $recent->formatted_sale_date }} {{ $recent->sale_code }} {{ $recent->party->getFullName() }} {{ $formatNumber->formatWithPrecision($recent->grand_total) }} {{ $formatNumber->formatWithPrecision($recent->grand_total - $recent->paid_amount) }}
{{ $message }}
@endcan @can('dashboard.can.view.low.stock.items.table')
{{ __('item.low_stock_items') }}
@can('item.view') @endcan
@php $i = 1; @endphp @foreach($lowStockItems as $item) @endforeach
# {{ __('item.item_name') }} {{ __('item.brand.brand') }} {{ __('item.category.category') }} {{ __('item.min_stock') }} {{ __('item.current_stock') }} {{ __('unit.unit') }}
{{ $i++ }} {{ $item->name }} {{ $item->brand->name??'' }} {{ $item->category->name }} {{ $formatNumber->formatQuantity($item->min_stock) }} {{ $formatNumber->formatQuantity($item->current_stock) }} {{ $item->baseUnit->name }}
@endcan
System Health & Reliability

Free Disk Space

{{ $systemHealth['disk_free'] }}

Last Backup

{{ $systemHealth['last_backup'] }}

Database Status

{{ $systemHealth['db_connection'] }}

PHP Version

{{ $systemHealth['php_version'] }}
@endsection @section('js') @endsection