@extends('backend.layouts.app') @section('page-title', trans('app.shift_stats')) @section('page-heading', trans('app.shift_stats')) @section('content')
@include('backend.partials.messages')

@lang('app.filter')

@php $filter = ['' => '---']; $shifts = \VanguardLTE\OpenShift::orderBy('start_date', 'DESC')->get(); if( count($shifts) ){ foreach($shifts AS $shift){ $filter[$shift->id] = $shift->id . ' - ' . $shift->start_date; } } @endphp {!! Form::select('shifts', $filter, Request::get('shifts'), ['id' => 'shifts', 'class' => 'form-control']) !!}

@lang('app.shift_stats')

@if(!auth()->user()->hasRole('cashier')) @endif @if(!auth()->user()->hasRole('cashier')) @endif @permission('games.in_out') @endpermission @if(!auth()->user()->hasRole('cashier')) @endif @if(auth()->user()->hasRole('admin')) @endif @if (count($open_shift)) @foreach ($open_shift as $num=>$stat) @include('backend.stat.partials.row_shift_stat') @endforeach @else @endif @if(!auth()->user()->hasRole('cashier')) @endif @if(!auth()->user()->hasRole('cashier')) @endif @permission('games.in_out') @endpermission @if(!auth()->user()->hasRole('cashier')) @endif @if(auth()->user()->hasRole('admin')) @endif
@lang('app.shift')Open Shift @lang('app.date_start') @lang('app.date_end')@lang('app.credit') @lang('app.in') @lang('app.out')@lang('app.total') Credit@lang('app.banks')@lang('app.returns')User @lang('app.balance') @lang('app.in') @lang('app.out') @lang('app.total') Money@lang('app.profit')
@lang('app.no_data')
@lang('app.shift')Open Shift @lang('app.date_start') @lang('app.date_end')@lang('app.credit') @lang('app.in') @lang('app.out')@lang('app.total') Credit@lang('app.banks')@lang('app.returns')User @lang('app.balance') @lang('app.in') @lang('app.out') @lang('app.total') Money@lang('app.profit')
{{ $open_shift->appends(Request::except('page'))->links() }}
@stop @section('scripts') @stop