@if(!auth()->user()->hasRole('cashier')) {{ $stat->id }} @endif {{ $stat->user->username }} {{ date(config('app.date_time_format'), strtotime($stat->start_date)) }} {{ $stat->end_date ? date(config('app.date_time_format'), strtotime($stat->end_date)) : '' }} @if(!auth()->user()->hasRole('cashier')) {{ $stat->balance }} {{ $stat->balance_in }} {{ $stat->balance_out }} @endif {{ number_format ($stat->balance + $stat->balance_in - $stat->balance_out, 4, ".", "") }} @permission('games.in_out') @php $banks = !$stat->end_date ? $stat->banks() : $stat->last_banks; @endphp {{ number_format ($banks, 4, ".", "") }} @endpermission @if(!auth()->user()->hasRole('cashier')) @if( !$stat->end_date ) {{ $stat->returns() }} @else {{ $stat->last_returns }} @endif @endif @php $money = $stat->users; if($stat->end_date == NULL){ $money = $summ; } @endphp {{ $money }} {{ $stat->money_in }} {{ $stat->money_out }} @php $total = $stat->money_in - $stat->money_out; @endphp {{ number_format ($total, 4, ".", "") }} @if(auth()->user()->hasRole('admin')) {{ number_format ($stat->profit(), 4, ".", "") }} @endif