expenses

@component('admin.components.info') These expenses are only applied to this subfleet @endcomponent

@if(count($subfleet->expenses)) @endif @foreach($subfleet->expenses as $expense) @endforeach
Name Cost {!! currency(config('phpvms.currency')) !!}

{!! $expense->name !!}

{!! $expense->amount !!}

{!! Form::open(['url' => url('/admin/subfleets/'.$subfleet->id.'/expenses'), 'method' => 'delete', 'class' => 'modify_expense form-inline']) !!} {!! Form::hidden('expense_id', $expense->id) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'btn btn-sm btn-danger btn-icon', 'onclick' => "return confirm('Are you sure?')", ]) !!} {!! Form::close() !!}

{!! Form::open(['url' => url('/admin/subfleets/'.$subfleet->id.'/expenses'), 'method' => 'post', 'class' => 'modify_expense form-inline']) !!} {!! Form::input('text', 'name', null, ['class' => 'form-control input-sm']) !!} {!! Form::number('cost', null, ['class' => 'form-control input-sm']) !!} {!! Form::button(' Add', ['type' => 'submit', 'class' => 'btn btn-success btn-small']) !!} {!! Form::close() !!}