@extends('layouts.app') @section('title', __('app.dashboard')) @section('content')

{{ __('app.dashboard') }}

{{ __('app.dashboard_subtitle') }}

{{ __('app.quick_actions') }} {{ __('app.new_sale') }} {{ __('app.add_expense') }}
@if(auth()->user()->canDo('sales.create'))
{{ __('app.sale_wizard') }}{{ __('app.create_invoice') }}
@endif @if(auth()->user()->canDo('sales.create'))
{{ __('app.retail_invoice') }}{{ __('app.customer_name_only') }}
@endif @if(auth()->user()->canDo('purchases.create'))
{{ __('app.purchase') }}{{ __('app.purchase_wizard') }}
@endif @if(auth()->user()->canDo('stock.view'))
{{ __('app.stock') }}{{ __('app.stock_wizard') }}
@endif @if(auth()->user()->canDo('payments.create'))
{{ __('app.payments') }}{{ __('app.payment_to_supplier') }}
@endif @if(auth()->user()->canDo('reports.view'))
{{ __('app.reports') }}{{ __('app.report_wizard') }}
@endif
{{ __('app.available_stock') }}{{ $cards['stock'] }}
{{ __('app.sold') }}{{ $cards['sold'] }}
{{ __('app.today_sales') }}{{ number_format($cards['today_sales'],2) }}
{{ __('app.today_profit') }}{{ number_format($cards['today_profit'],2) }}
{{ __('app.customer_due') }}{{ number_format($cards['customer_due'],2) }}
{{ __('app.supplier_due') }}{{ number_format($cards['supplier_due'],2) }}

{{ __('app.latest_sales') }}

{{ __('app.view') }}
@forelse($latestSales as $s)@empty@endforelse
{{ __('app.invoice') }}{{ __('app.customer') }}{{ __('app.total') }}
{{ $s->invoice_no }}{{ $s->walk_in_customer_name ?: ($s->customer->name ?? '-') }}{{ number_format($s->total,2) }}
{{ __('app.no_records') }}

{{ __('app.latest_mobiles') }}

{{ __('app.view') }}
@forelse($latestMobiles as $m)@empty@endforelse
IMEI{{ __('app.mobile') }}{{ __('app.status') }}
{{ $m->imei_1 }}{{ $m->title() }}{{ __('app.'.$m->stock_status) }}
{{ __('app.no_records') }}
@endsection