@extends('backend.layouts.master') @section('page-title', 'Dashboard') @push('css') @endpush @section('content') @php $total_invoice = App\Models\Invoice::sum('total_amount'); $total_return = App\Models\ReturnTbl::sum('total_return'); $total_purchase = App\Models\Purchase::sum('total_amount'); $return_purchase = App\Models\ReturnPurchase::sum('total_return'); @endphp
Sale

{{ empty(get_setting('com_currency')) ? : get_setting('com_currency') }} {{ number_format($data['sale'], 0) }}

@if (check_permission('dashboard.dashboard'))
Purchase

{{ empty(get_setting('com_currency')) ? : get_setting('com_currency') }} {{ number_format($data['purchase'], 0) }}

@endif
Expense

{{ empty(get_setting('com_currency')) ? : get_setting('com_currency') }} {{ number_format($data['expense'], 2) }}

@if (check_permission('dashboard.dashboard'))
Profit

{{ empty(get_setting('com_currency')) ? : get_setting('com_currency') }} {{ number_format($data['profit'], 2) }}

@endif
{{-- 1st col --}}
@if (check_permission('dashboard.dashboard'))
Total Purchase Due

{{ empty(get_setting('com_currency')) ? : get_setting('com_currency') }} {{ number_format($total_pur_due, 0) }}

@endif @if (check_permission('dashboard.dashboard'))

Total Purchase Amount

{{ empty(get_setting('com_currency')) ? : get_setting('com_currency') }} {{ number_format($total_pur_amount, 0) }}

@endif {{-- mobile view --}}
Total Sales Due

{{ empty(get_setting('com_currency')) ? : get_setting('com_currency') }} {{ number_format($total_sale_due, 0) }}

Total Product

{{ number_format($total_product, 0) }}

{{-- mobile view --}}
Total Return Amount

{{ empty(get_setting('com_currency')) ? : get_setting('com_currency') }} {{ number_format($total_return_amount, 0) }}

{{-- 2nd col --}}
Total Sales Due

{{ empty(get_setting('com_currency')) ? : get_setting('com_currency') }} {{ number_format($total_sale_due, 0) }}

{{-- mobile view --}}
Total Purchase Amount

{{ empty(get_setting('com_currency')) ? : get_setting('com_currency') }} {{ number_format($total_pur_amount, 0) }}

Total Sales Amount

{{ empty(get_setting('com_currency')) ? : get_setting('com_currency') }} {{ number_format($total_sale, 0) }}

{{-- mobile view --}}
Available Stock Amount

{{ empty(get_setting('com_currency')) ? : get_setting('com_currency') }}

Total Customer

{{ number_format($total_customer, 0) }}

Total Return Amount

{{ empty(get_setting('com_currency')) ? : get_setting('com_currency') }} {{ number_format($total_return_amount, 0) }}

{{-- mobile view --}}
Total Product

{{ number_format($total_product, 0) }}

Available Stock Amount

{{ empty(get_setting('com_currency')) ? : get_setting('com_currency') }} {{ number_format($totalPrice, 0) }}

{{-- mobile view --}}
Total Customer

{{ number_format($total_customer, 0) }}

Total Invoice

{{ number_format($total_invoice_count, 0) }}

@endsection @push('js') @endpush