2{{ __('Home - Atalhos do Sistema') }}

@push('styles') @endpush

Bem-vindo, {{ Auth::user()->name }}!

Acesse rapidamente todas as funcionalidades do VendUP

Último acesso

{{ now()->format('d/m/Y H:i') }}

Produtos

{{ \App\Models\Product::count() }}

Vendas Hoje

{{ \App\Models\Sale::whereDate('created_at', today())->count() }}

Estoque Baixo

{{ \App\Models\ProductStock::where('current_stock', '<', 10)->count() }}

Caixa

@php $user = Auth::user(); if ($user->role === 'admin') { $openSessions = \App\Models\CashSession::where('account_id', $user->account_id) ->where('status', 'aberta') ->count(); echo $openSessions > 0 ? $openSessions . ' Aberto(s)' : 'Fechado'; } else { $cashSession = \App\Models\CashSession::where('account_id', $user->account_id) ->where('user_id', $user->id) ->where('status', 'aberta') ->first(); echo $cashSession ? 'Aberto' : 'Fechado'; } @endphp