@extends('backend.layouts.user') @section('page-title', trans('app.game_stats')) @section('page-heading', trans('app.game_stats')) @section('content')
@include('backend.partials.messages')
@lang('app.game_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('admin')) @endif @if (count($game_stat)) @foreach ($game_stat as $stat) @include('backend.games.partials.row_stat') @endforeach @else @endif @if(auth()->user()->hasRole('admin')) @endif {{ $game_stat->appends(Request::except('page'))->links()}}
@stop @section('scripts') @stop