@extends('layouts.app') @section('content')

Site

@if(Session::has('flash_message'))

{{ Session::get('flash_message') }}

@endif
Site Records
{!! Form::open(['method' => 'POST', 'route' => 'admin.tank.store','id'=>'ownodoreadingaddform','class' => 'form-vertical', 'novalidate' => 'novalidate']) !!}
{!! $errors->first('site', '

:message

') !!}
{!! Form::date('date', null, ['class' => 'm-wrap span12', 'autocomplete' => 'off', 'required' => 'true']) !!} {!! $errors->first('site', '

:message

') !!}
{!! Form::number('capacity', null, ['class' => 'm-wrap span12', 'placeholder' => 'Capacity', 'required' => 'true']) !!} {!! $errors->first('capacity', '

:message

') !!}
{!! Form::select('fuel', ['' => 'Select Fuel', 'Petrol' => 'Petrol', 'Diesel' => 'Diesel'], null, ['class' => 'm-wrap span12', 'id' => 'fuelId', 'required' => 'true']) !!} {!! $errors->first('fuel', '

:message

') !!}
{!! Form::select('pump', $page_data['own_pumps']->toArray(), null, ['class' => 'm-wrap span12 js-select-type-multiple', 'id' => 'pumpId', 'name' => 'pump[]', 'multiple' => 'multiple']) !!} {!! $errors->first('pump', '

:message

') !!}
{!! Form::close() !!}
{!! Form::open(['method' => 'POST', 'route' => 'admin.tank.change_status','class' => 'form-vertical changeStatusForm', 'id' => 'changeStatusForm', 'novalidate' => 'novalidate']) !!} @foreach($site_list as $item) @endforeach
Date Tank # Site Location Capacity Fuel Stock Pump Status Action
{{Helper::convert_to_ddmmyy($item->date)}} {{ $item->tank }} {{ $item->sitelocations->site }} {{ $item->sitelocations->location }} {{ $item->capacity }} {{ $item->fuel }} {{ number_format($item->stock,2) }} {{ $item->pumps->count() }} {{ ($item->status == 1) ? 'Active' : 'Inactive' }} {!! ($item->status == 1) ? '' : '' !!}  Log
{!! Form::close() !!}
@endsection @section('script') @endsection