@extends('invoice/app') {{-- Web site Title --}} @section('title') Invoice Form :: @parent @stop @section('content')
Download Template Download PDF Delete Invoice Add new row Save
@if (isset($status))
@endif @if (count($errors) > 0)
There were some problems adding client.
@endif
{!! Form::open( [ 'method' => 'put', 'id' => "invoice_form", 'class' =>"form" ]) !!}

Invoice #
{!! Form::text('uid', isset($invoice) && $invoice->uid ? $invoice->uid : old('uid'), ['class' => 'form-control', 'id' => 'uid']) !!}

{!! Form::label('client_id', 'Client') !!} {!! Form::select('client_id', $clients, isset($client) && $client->id ? $client->id : old('client_id'), ['class' => 'form-control select2', 'id' => 'client_id']) !!}
{!! Form::label('address_id', 'Ship Address') !!} {!! Form::select('address_id', $addresses, isset($address) && $address->id ? $address->id : old('address_id'), ['class' => 'form-control select2', 'id' => 'address_id']) !!}
{!! Form::label('po_number', 'PO Number') !!} {!! Form::text('po_number', isset($invoice) && $invoice->po_number ? $invoice->po_number : old('po_number'), ['class' => 'form-control', 'id' => 'po_number']) !!}
{!! Form::label('eway_bill', 'E-Way Bill') !!} {!! Form::text('eway_bill', isset($invoice) && $invoice->eway_bill ? $invoice->eway_bill : old('eway_bill'), ['class' => 'form-control', 'id' => 'eway_bill']) !!}
{!! Form::close() !!}
{!! Form::open( [ 'method' => 'post', 'id' => "invoice_form_excel", 'class' =>"form", 'url' => '/invoice/'.$invoice->id.'/upload-excel', 'files' => 'true', 'enctype'=>'multipart/form-data' ]) !!} {!! Form::label('file', 'Upload File') !!} {!! Form::close() !!}
{!! Form::open( [ 'method' => 'put', 'id' => "invoice_form", 'class' =>"form" ]) !!}
@foreach($items as $item) @endforeach
Item Description Quantity Unit Price Total Amount
Item
HSN/SAC Code
Quantity
Unit Price
Description
Unit
@if($item->sgst > 0) SGST: @currency($item->sgst)
@endif @if($item->cgst > 0) CGST: @currency($item->cgst)
@endif @if($item->igst > 0) IGST: @currency($item->igst)
@endif Item Total: @currency($item->total)
@if($invoice->tax > 0) @endif
Item Amounts @currency($invoice->amount)
Item Taxes @currency($invoice->tax)
Transportation Charge
Total @currency($invoice->total)

Note: Invoice must be issued under {{$invoice->state->name}} Taxes
{!! Form::close() !!}
@endsection @section('scripts') @endsection