@extends('layouts.business.master') @section('title') {{ __('Dashboard') }} @endsection @section('main_content') @if(auth()->user()->hasPermission('dashboard.read'))
@if (env('DEMO_MODE')) @endif

{{ __('Total Sales') }}

{{ __('This Month') }}

{{ __('Total Purchase') }}

{{ __('This Month') }}

{{ __('Total Income') }}

{{ __('This Month') }}

{{ __('Total Expense') }}

{{ __('This Month') }}

{{-- 2nd row --}}

{{ __('Total Customer') }}

{{ __('This Month') }}

{{ __('Total Supplier') }}

{{ __('This Month') }}

{{ __('Sales Returns') }}

{{ __('This Month') }}

{{ __('Purchase Returns') }}

{{ __('This Month') }}

{{-- 2nd column --}}

{{ __('Revenue Statistic') }}

{{ __('Profit') }}:

{{ __('Loss') }}:

{{ __('Low Stock') }}

{{ __('View All') }}
@foreach ($stocks as $stock) @if ($stock->stocks_sum_product_stock <= $stock->alert_qty) @else @endif @endforeach
{{ __('SL') }} {{ __('Name') }} {{ __('Alert Qty') }}
{{ $loop->index + 1 }} {{ $stock->productName }}{{ $stock->stocks_sum_product_stock ?? 0 }}{{ $stock->stocks_sum_product_stock ?? 0 }}
{{-- 2nd column --}}

{{ __('Overall Reports') }}

{{ __('Purchase') }}:

{{ __('Sales') }}:

{{ __('Income') }}:

{{ __('Expense') }}:

@foreach ($sales as $sale) @endforeach
{{ __('Date') }} {{ __('Invoice') }} {{ __('Customer') }} {{ __('Total') }} {{ __('Paid') }} {{ __('Due') }}
{{ formatted_date($sale->created_at) }} {{ $sale->invoiceNumber }} {{ $sale->party->name ?? '' }} {{ currency_format($sale->totalAmount, currency: business_currency()) }} {{ currency_format($sale->paidAmount, currency: business_currency()) }} {{ currency_format($sale->dueAmount, currency: business_currency()) }}
@foreach ($purchases as $purchase) @endforeach
{{ __("Date") }} {{ __("Invoice") }} {{ __("Customer") }} {{ __("Total") }} {{ __("Paid") }} {{ __("Due") }}
{{ formatted_date($purchase->created_at) }} {{ $purchase->invoiceNumber }} {{ $purchase->party->name ?? '' }} {{ currency_format($purchase->totalAmount, currency: business_currency()) }} {{ currency_format($purchase->paidAmount, currency: business_currency()) }} {{ currency_format($purchase->dueAmount, currency: business_currency()) }}
@else

You can not access it!

@endif @php $currency = business_currency(); @endphp {{-- Hidden input fields to store currency details --}} @endsection @push('js') @endpush