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

{{ __('customer.total') }}

{{ $totalCustomers }}

{{ __('payment.payment_receivables') }}

{{ $totalPaymentReceivables }}

जारी प्रमाणपत्र (छोटो अवधि)

{{ $totalshort }}

जारी प्रमाणपत्र (प्रि/डिप्लोमा)

{{ $totaldiploma }}

@endcan
@can('dashboard.can.view.sale.vs.purchase.bar.chart')
{{ __('sale.sale') }}
{{ __('sale.sale_invoices') }}
@endcan
@can('dashboard.can.view.recent.invoices.table')
{{ __('sale.recent_invoices') }}
@foreach($recentInvoices as $recent) @php if($recent->grand_total == $recent->paid_amount){ $class = 'success'; $message = 'Paid'; }else if($recent->grand_total < $recent->paid_amount){ $class = 'warning'; $message = 'Partial'; }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
@endsection @section('js') @endsection