@extends('layouts/pos_layout') @section('title', '| Add Purchase') @section('content')
Purchase
{!! Form::open(array('url' => '', 'role' => 'form', 'class'=>'form-horizontal form-groups', 'id' => 'purchaseForm')) !!}
{!! Form::label('purchase_no', 'Purchase No:*', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::text('purchase_no', $value = $nextPurchaseNo, ['class' => 'form-control', 'id' => 'purchase_no', 'type' => 'text','readonly','autocomplete'=>'off']) !!}

{!! Form::label('purchase_bill_no', 'Bill No:', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::text('purchase_bill_no', $value = null, ['class' => 'form-control', 'id' => 'purchase_bill_no', 'type' => 'text','autocomplete'=>'off']) !!}

{!! Form::label('contact_person', 'Contact Person*', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::text('contact_person', null, ['class' => 'form-control', 'id' => 'contact_person', 'type' => 'text','autocomplete'=>'off', 'readonly','placeholder' => 'Enter Contect Person']) !!}

{!! Form::label('supplier_id', 'Supplier:*', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::select('supplier_id', $suppliers,null, ['class' => 'form-control', 'id' => 'supplier_id','placeholder' => 'Select Supplier','required'=>'required']) !!}

{!! Form::label('branch_id', 'Branch Name:*', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::select('branch_id', $branches,null, ['class' => 'form-control', 'id' => 'branch_id','placeholder' => 'Select Branch','required'=>'required']) !!}

{!! Form::label('remarks', 'Remarks:', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::textarea('remarks', null, array('class'=>'form-control','rows'=>2, 'id' => 'remarks','placeholder' => 'Enter Remarks')) !!}

{!! Form::label('invoice_no', 'Chalan No:*', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::text('invoice_no', null, array('class'=>'form-control', 'id' => 'invoice_no','placeholder' => 'Enter Chalan No')) !!}

{!! Form::label('delivery_no', 'Delivery No:', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::text('delivery_no', null, array('class'=>'form-control', 'id' => 'delivery_no','placeholder' => 'Enter Delivery No')) !!}

{!! Form::label('order_no', 'Order No:', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::text('order_no', null, array('class'=>'form-control', 'id' => 'order_no','placeholder' => 'Enter Order No')) !!}

{!! Form::label('requisition_no', 'Requisition No:', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::text('requisition_no', null, array('class'=>'form-control', 'id' => 'requisition_no','placeholder' => 'Enter Requisition No')) !!}

{!! Form::label('purchase_date', 'Purchase Date:*', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::text('purchase_date', null, ['class' => 'form-control purchase_date','readonly']) !!}

{!! Form::label('total_quantity', 'Total Quantity:*', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::text('total_quantity', null, ['class' => 'form-control numeric', 'id' => 'total_quantity', 'readonly','min'=>'0']) !!}

{!! Form::label('total_amount', 'Total Amount:*', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::text('total_amount', null, ['class' => 'form-control numeric', 'id' => 'total_amount', 'readonly','min'=>'0']) !!}

{!! Form::label('discount', 'Discount:', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::text('discount_percent', null, ['class' => 'form-control numeric col-sm-5', 'id' => 'discount_percent', 'placeholder'=>'%','min'=>'0']) !!}
{!! Form::text('discount_amount', null, ['class' => 'form-control col-sm-7 numeric', 'id' => 'discount_amount','min'=>'0']) !!}

{!! Form::label('total_amount_after_discount', 'T/A After Discount:', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::text('total_amount_after_discount', null, ['class' => 'form-control', 'id' => 'total_amount_after_discount', 'readonly','min'=>'0']) !!}

{!! Form::label('vat', 'VAT:', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::text('vat_percent', null, ['class' => 'form-control numeric col-sm-5', 'id' => 'vat_percent', 'placeholder'=>'%','min'=>'0']) !!}
{!! Form::text('vat_amount', null, ['class' => 'form-control col-sm-7 numeric', 'id' => 'vat_amount', 'readonly','min'=>'0']) !!}

{!! Form::label('gross_total', 'Gross Total:*', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::text('gross_total', null, ['class' => 'form-control', 'id' => 'gross_total', 'readonly','min'=>'0']) !!}

{!! Form::label('pay_amount', 'Pay Amount:*', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::text('pay_amount', null, ['class' => 'form-control numeric', 'id' => 'pay_amount','min'=>'0']) !!}

{!! Form::label('purchase_due', 'Purchase Due:', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::text('purchase_due', null, ['class' => 'form-control numeric', 'id' => 'purchase_due','min'=>'0']) !!}

{!! Form::label('group_id', 'Group:', ['class' => 'control-label col-sm-12'],false) !!}
{!! Form::label('category_id', 'Category:', ['class' => 'control-label col-sm-12'],false) !!}
{!! Form::label('sub_category_id', 'Subcatagory:', ['class' => 'control-label col-sm-12 '],false) !!}
{!! Form::label('model_id', 'Model:', ['class' => 'control-label col-sm-12 '],false) !!}
Barcode Product Name Model Name Qty Price Total PID(Serial No) Remove
Total Quantity Total Amount
{!! Form::label('submit', ' ', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::submit('Submit', ['id' => 'add', 'class' => 'btn btn-info submit-btn']); !!} Close
{!! Form::close() !!}