@extends('backend.layouts.app') @section('page-title', trans('app.room_stats')) @section('page-heading', trans('app.room_stats')) @section('content') @include('backend.partials.messages') Filter Name {!! Form::select('type', $rooms, Request::get('name'), ['id' => 'name', 'class' => 'form-control']) !!} User Type {!! Form::select('type', ['' => 'All', 'add' => 'Add', 'out' => 'Out'], Request::get('type'), ['id' => 'type', 'class' => 'form-control']) !!} Sum From Sum To Date @php $filter = ['' => '---']; $shifts = \VanguardLTE\OpenShift::where('room_id', Auth::user()->room_id)->orderBy('start_date', 'DESC')->get(); if( count($shifts) ){ foreach($shifts AS $shift){ $filter[$shift->id] = $shift->id . ' - ' . $shift->start_date; } } @endphp Shifts {!! Form::select('shifts', $filter, Request::get('shifts'), ['id' => 'shifts', 'class' => 'form-control']) !!} @lang('app.room_stats') Name User Sum Date @if (count($rooms_stat)) @foreach ($rooms_stat as $stat) @include('backend.stat.partials.row_room_stat') @endforeach @else No data available in table @endif Name User Sum Date {{ $rooms_stat->appends(Request::except('page'))->links() }} @stop @section('scripts') @stop