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

Edit Purchase Order

{!! Form::open(['route'=>array('purchase-order.update', $purchase_order->id), 'onsubmit'=>'BtnSubmit.disabled = true', 'method' => 'put']) !!}
{{$errors->first('order_no')}}
{{$errors->first('purchase_order_date')}}
{!! Form::select("supplier_id", [''=>'Select ']+$suppliers, old("supplier_id", $purchase_order->supplier_id), ['class'=>'form-control select2', 'required', 'id'=>'supplier_id'] ) !!}
{{$errors->first('supplier_id')}}
{{$errors->first('account_payable')}}
{!! 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('purchase_order_remark')}}
@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('order_description')}}
{{$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->order_status == "Active") @endif
{!! Form::close() !!}
@endsection @push('footerscript') @endpush