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

Pumps

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

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

@endif
Pump Records
@foreach($pump as $item) @endforeach
Pump NumberFuel StationMeter Start RateMeter End RateStatusActions
{{ $item->pump_number }} {{ $item->fuel_station }} {{ $item->meter_start_rate }} {{ $item->meter_end_rate }} {!! $item->status == 0 ? 'Inactive' : 'Active' !!} {!! Form::open([ 'method'=>'DELETE', 'url' => ['/admin/pump', $item->id], 'style' => 'display:inline' ]) !!} {!! Form::button('', array( 'type' => 'submit', 'class' => 'btn red btn-xs', 'title' => 'Delete Pump', 'onclick'=>'return confirm("Confirm delete?")' )) !!} {!! Form::close() !!}
Fuel Records
{!! Form::open(['route' => 'admin.fuel.store', 'class' => 'form-vertical','id'=>'myform2','files' => true, 'novalidate' => true]) !!}
{!! Form::text('name', null, ['class' => 'form-control', 'placeholder' => 'Name', 'required' => 'true']) !!} {!! $errors->first('name', '

:message

') !!}
{!! Form::close() !!}
@if(count($fuels)) @foreach($fuels as $item) @endforeach @else @endif
Name
{{ $item->name }}
No record found!
@endsection