@extends('layouts/inventory_layout') @section('title', '| ' . $pageTitle) @section('content')
Edit Branch Requisition
{!! Form::open(array('url' => '', 'role' => 'form', 'class'=>'form-horizontal form-groups', 'id' => 'editBranchRequisitionForm')) !!}
{!! Form::hidden('branch_requisition_id', $branch_requisition->id, ['class' => 'form-control input-sm', 'id' => 'branch_requisition_id'],false) !!}
{!! Form::label('billNo', 'Bill No:* ', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::text('branch_requisition_no', $value = 'BR'.$branch_requisition->branch_requisition_no, ['class' => 'form-control', 'id' => 'branch_requisition_no', 'type' => 'text','readonly','autocomplete'=>'off']) !!}

{!! Form::label('branch_requisition_date', 'Date:* ', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::text('branch_requisition_date', date('d-m-Y',strtotime($branch_requisition->branch_requisition_date)), ['class' => 'form-control', 'id' => 'branch_requisition_date','readonly','autocomplete'=>'off']) !!}

{!! Form::label('branch_id', 'From Branch:* ', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::select('branch_id', $fromBranches,$branch_requisition->branch_id, ['class' => 'form-control custom-select2', 'id' => 'branch_id','placeholder' => 'Select Branch','required'=>'required','autocomplete'=>'off']) !!}

{!! Form::label('to_branch_id', 'To Branch:* ', ['class' => 'col-sm-4 control-label'],false) !!}
{!! Form::select('to_branch_id', $toBranches,$branch_requisition->to_branch_id, ['class' => 'form-control custom-select2', 'id' => 'to_branch_id','placeholder' => 'Select Branch','required'=>'required','autocomplete'=>'off']) !!}

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

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

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

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

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

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

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

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

{!! Form::label('branch_requisition_due', 'Order Due:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('branch_requisition_due', $purchase_order->branch_requisition_due, ['class' => 'form-control numeric', 'id' => 'branch_requisition_due','min'=>'0','autocomplete'=>'off']) !!}

--}}
{!! 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) !!}
{{-- --}} {{-- --}} {{-- --}} {{-- --}} @php $t_qty = 0; $t_price = 0; @endphp @foreach($branch_requisition_details as $details) {{-- --}} @php $t_qty += $details->quantity; $t_price += $details->total_price; @endphp @endforeach {{-- --}} {{-- --}} {{-- --}}
BarcodeProduct Name* Model Name* Qty*Price TotalRemove
{{-- --}} {{$details->inv_product->name}}{{$details->inv_product->inv_model->name}}
Total Quantity {{$t_qty}}Total Amount
{!! Form::label('update', ' ', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::submit('Update', ['id' => 'add', 'class' => 'btn btn-info']); !!} Close
{!! Form::close() !!}