@extends('layouts.master') @section('title', 'Charging Report') @section('links') @endsection @section('content')
{!! Form::open(['route' => 'charging_report','method'=>"GET",'autocomplete'=>"off",'role' => 'form', 'class'=>'template-form form-inline','id' => 'form','data-submit' => 'noAjax']) !!} {!! Form::select('application', [null => 'Select Organisation']+$packages, isset($application) ? $application : old('application'),['id'=>'application','class'=>'form-control select2-show-search input-xlarge select2me'])!!}   {!! Form::select('station', [null => 'Select Stations']+$stations, isset($station) ? $station : old('station'),['id'=>'station','class'=>'station form-control select2-show-search select2me'])!!}   {!! Form::select('cps', [null => 'CPS']+$charging_points, isset($cps) ? $cps : old('cps'),['id'=>'cps','class'=>'form-control select2-show-search input-xlarge select2me'])!!}        
{!! Form::close() !!}
{!! Form::open(['route' => 'charging_report','method'=>"GET",'autocomplete'=>"off",'role' => 'form', 'class'=>'form-inline','id' => 'form-byuser','data-submit' => 'noAjax']) !!}
{!! Form::select('applications', [null => 'Select Organisation']+$packages, isset($applications) ? $applications : old('applications'),["id"=>'pkg','class'=>'form-control input-xlarge select2me'])!!}   {!! Form::select('user', [null => 'Select Users'], isset($user) ? $user : old('user'),['id'=>'user','class'=>'form-control select2me'])!!}
{!! Form::close() !!}
Charging Reports {{ $fromdate }} To {{ $todate }} {{ $message }}
@php $i=1 @endphp @foreach ($users as $user) @php $i++; @endphp @endforeach
So No Station ID Ocpp Id port User Name Date In Time Out Time Power Usage Amount
Total
{{ $i }} {{ $user->station_id }} {{ $user->nozzle_id }} {{ $user->charger_id }} {{ $user->first_name.' '.$user->last_name }} {{ date('d-m-Y',strtotime($user->created_at)) }} {{ date('h:i:s',strtotime($user->plug_in_time)) }} {{ date('h:i:s',strtotime($user->plug_out_time)) }} {{ $user->power_usage }} {{ $user->amount }}
@endsection @section('scripts') @endsection