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

Price/Ltr

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

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

@endif
Price Records
{!! Form::open(['url' => '/admin/price/create', 'class' => 'form-vertical','id'=>'myform','files' => true]) !!}
{!! Form::date('date', null, ['class' => 'm-wrap span12']) !!} {!! $errors->first('date', '

:message

') !!}
{!! Form::select('location',[''=>'Select Location'] + $page_data['locationData'],null, ['class' => 'm-wrap span12']) !!} {!! $errors->first('location', '

:message

') !!}
{!! Form::number('diesel', null, ['class' => 'm-wrap span12']) !!} {!! $errors->first('diesel', '

:message

') !!}
{!! Form::number('petrol', null, ['class' => 'm-wrap span12']) !!} {!! $errors->first('petrol', '

:message

') !!}
{!! Form::select('currency',[''=>'Currency']+ $page_data['currencyData']->toArray() ,null, ['class' => 'm-wrap span12']) !!} {!! $errors->first('currency', '

:message

') !!}

{!! Form::close() !!} @foreach($price as $item) @endforeach
Date Location Diesel Petrol Currency Actions
{{ Helper::convert_to_ddmmyy($item->date) }} {{ $item->location }} {{ $item->diesel }} {{ $item->petrol }} {{ $item->currency }} {!! Form::open([ 'method'=>'DELETE', 'url' => ['/admin/price', $item->id], 'style' => 'display:inline' ]) !!} {!! Form::button('', array( 'type' => 'submit', 'class' => 'btn red btn-xs', 'title' => 'Delete', 'onclick'=>'return confirm("Confirm delete?")' )) !!} {!! Form::close() !!}
@endsection