@extends('backend.layouts.user') @section('page-title', trans('app.bank_stats')) @section('page-heading', trans('app.bank_stats')) @section('content')
@include('backend.partials.messages')
@lang('app.bank_stats')
@lang('app.filter')
{!! Form::select('type', ['' => 'All', 'add' => 'Add', 'out' => 'Out'], Request::get('type'), ['id' => 'type', 'class' => 'form-control']) !!}
@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 (count($bank_stat)) @foreach ($bank_stat as $stat) @include('backend.stat.partials.row_bank_stat') @endforeach @else @endif {{ $bank_stat->appends(Request::except('page'))->links() }}
@stop @section('scripts') @stop