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

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

{{--
{!! Form::label('projectId', 'Project:', ['class' => 'col-sm-4 control-label']) !!}

{!! Form::label('projectTypeId', 'Project Type:', ['class' => 'col-sm-4 control-label']) !!}

--}} @if ($loggedBranch->name == 'Head Office')
{!! Form::label('branch_id', 'From Branch:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::select('branch_id', $fromBranches,$requisition->branch_id, ['class' => 'form-control custom-select2', 'id' => 'branch_id','placeholder' => 'Select Branch','required'=>'required','autocomplete'=>'off']) !!}

@else {!! Form::hidden('branch_id', $requisition->branch_id, ['class' => 'form-control input-sm', 'id' => 'branch_id']) !!} @endif
{!! Form::label('to_branch_id', 'To Branch:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::select('to_branch_id', $toBranches,$requisition->to_branch_id, ['class' => 'form-control custom-select2', 'id' => 'to_branch_id','placeholder' => 'Select Branch','required'=>'required','autocomplete'=>'off']) !!}

{!! Form::label('supplier_id', 'Supplier:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::select('supplier_id', $suppliers,$requisition->supplier_id, ['class' => 'form-control custom-select2', 'id' => 'supplier_id','placeholder' => 'Select Supplier','required'=>'required','autocomplete'=>'off']) !!}

{!! Form::label('remarks', 'Remarks:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::textarea('remarks', $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']) !!}
{!! Form::text('total_quantity', $requisition->total_quantity, ['class' => 'form-control numeric', 'id' => 'total_quantity', 'readonly','min'=>'0','autocomplete'=>'off']) !!}

{!! Form::label('group_id', 'Group:', ['class' => 'control-label col-sm-12']) !!}
{!! Form::label('category_id', 'Category:', ['class' => 'control-label col-sm-12']) !!}
{!! Form::label('sub_category_id', 'Subcatagory:', ['class' => 'control-label col-sm-12 ']) !!}
{!! Form::label('model_id', 'Model:', ['class' => 'control-label col-sm-12 ']) !!}
{{-- --}} @php $t_qty = 0; $t_price = 0; @endphp @foreach($requisition_details as $details) @php $t_qty += $details->quantity; @endphp @endforeach
Barcode Product Name Model Name QtyPrice TotalRemove
{{$details->posProduct->name}} {{$details->posProduct->model->name}}
Total Quantity {{$t_qty}}
{!! Form::label('update', ' ', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::submit('Update', ['id' => 'add', 'class' => 'btn btn-info']); !!} Close
{!! Form::close() !!}