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

Charges

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

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

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

:message

') !!}

Yes

{!! Form::select('status', ['Inactive', 'Active'], null, ['class' => 'm-wrap']) !!} {!! $errors->first('status', '

:message

') !!}

{!! Form::submit('Add New Charge', ['class' => 'btn green', 'title' => 'Add New Charge', 'style' => 'margin-top: 7px;']) !!}
{!! Form::close() !!}
@foreach($charge as $item) @endforeach
Name Stock Module Status Actions
{{ $item->name }} {!! ($item->stock) ? '' : '' !!} {!! $item->status == 0 ? 'Inactive' : 'Active' !!} {!! Form::open([ 'method'=>'DELETE', 'url' => ['/admin/charge', $item->id], 'style' => 'display:inline' ]) !!} {!! Form::button('', array( 'type' => 'submit', 'class' => 'btn red btn-xs', 'title' => 'Delete Charge', 'onclick'=>'return confirm("Confirm delete?")' )) !!} {!! Form::close() !!}
@endsection