@extends('admin.layout.app') @section('title','Edit Purchase Invoice') @push('headerscript') @endpush @section('content')

Edit Purchase Invoice

{!! Form::open(['route'=>array('purchase-invoice.update', $purchase_order->id), 'onsubmit'=>'BtnSubmit.disabled = true', 'method' => 'put', 'files'=>true]) !!}
{{$errors->first('order_invoice_no')}}
{{$errors->first('purchase_invoice_date')}}
{{$errors->first('order_no')}}
{{$errors->first('purchase_order_date')}}
{!! Form::select("supplier_name", [''=>'Select ']+$suppliers,$purchase_order->supplier_id, ['class'=>'form-control select2', 'required', 'id'=>'supplier_name'] ) !!}
{{$errors->first('supplier_name')}}
{{$errors->first('account_payable')}}
{{$errors->first('supplier_invoice_no')}}
{{$errors->first('due_date')}}
{!! Form::select("branch_id", \App\Http\Helpers\Helper::getBranchData(), old("branch_id", $purchase_order->branch_id), ['class'=>'form-control' ,'id' => 'branch_id','required'=>'required'] ) !!}
{{$errors->first('branch_id')}}
branch->vat == 'yes'? 'checked':''}}>
@if($purchase_order->invoice_image) invoice_image)}}" target="_blank">View Attachment @endif
@foreach($purchase_order->purchaseOrderDetails as $purchase_order_detail) @endforeach
Part No.* Transaction Type* Qty.* Cost Price* Discount VAT Amount* Job Card No.
{!! Form::select("job_card_id[]", [''=>'Select ']+$jobCard, $purchase_order_detail->job_card_id, ['class'=>'form-control', 'id'=>'job_card_id'.$sp_cont] ) !!}
{{$errors->first('total_pcs')}}
{{$errors->first('gross_amount')}}
{{$errors->first('total_discount')}}
{{$errors->first('vat_with_price')}}
{{$errors->first('total_vat_amount')}}
{{$errors->first('order_net_amount')}}
{{-- @if($purchase_order->invoice_status =='Paid')--}} {{-- @endif--}} {{-- @if($purchase_order->invoice_status !='Paid')--}} {{-- @endif--}}
{!! Form::close() !!}
@endsection @push('footerscript') @endpush