@extends('backend.layouts.user') @section('page-title', trans('app.shift_stats')) @section('page-heading', trans('app.shift_stats')) @section('content')
@include('backend.partials.messages')
@lang('app.shift_stats')
@lang('app.filter')
@php $filter = ['' => '---']; $shifts = \VanguardLTE\OpenShift::where('shop_id', Auth::user()->shop_id)->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']) !!}
@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 {{ $open_shift->appends(Request::except('page'))->links() }}
@stop @section('scripts') @stop