@extends('admin/layouts/default') {{-- Page title --}} @section('title') Edit a invoice @parent @stop @section('content')

Invoices

Edit invoice

@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {!! Form::model($invoice, ['method' => 'PATCH', 'action' => ['InvoicesController@update', $invoice->id]]) !!}
{!! Form::label('number', 'Number: ') !!} {!! Form::text('number', null, ['class' => 'form-control']) !!}
{!! Form::label('date', 'Date: ') !!} {!! Form::date('date', null, ['class' => 'form-control']) !!}
{!! Form::label('buyer_id', 'Buyer: ') !!} {!! Form::select('buyer_id', $buyer, null, ['class' => 'form-control']) !!}
{!! Form::label('amount', 'Amount: ') !!} {!! Form::text('amount', null, ['class' => 'form-control']) !!}
{!! Form::label('delivery_charges', 'Delivery Charges: ') !!} {!! Form::text('delivery_charges', null, ['class' => 'form-control']) !!}
{!! Form::submit('Update', ['class' => 'btn btn-primary form-control']) !!}
{!! Form::close() !!}
@stop