@extends('layouts/inventory_layout') @section('title', '| ' . $pageTitle) @section('content')
Edit Requisition
{!! Form::open([ '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'], false) !!}
{!! 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'], false) !!}
{!! Form::text('requisition_date', date('d-m-Y', strtotime($requisition->requisition_date)), [ 'class' => 'form-control', 'id' => 'requisition_date', 'readonly', 'autocomplete' => 'off', ]) !!}

@if ($loggedBranch->name == 'Head Office')
{!! Form::label('branch_id', 'From Branch:*', ['class' => 'col-sm-4 control-label'], false) !!}
{!! 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'], false) !!}
{!! 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::hidden('supplier_id', $requisition->supplier_id, [ 'class' => 'form-control input-sm', 'id' => 'supplier_id', ]) !!} {{--
{!! 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'], false) !!}
{!! Form::textarea('remarks', $requisition->remarks, [ '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', $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'], 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('brand_id', 'Brand:', ['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; $iRow = 0; @endphp @foreach ($requisition_details as $details) @php $iRow++; @endphp @php $t_qty += $details->quantity; @endphp @endforeach
BarcodeModel Name Product Name Stock Qty Price TotalRemove
{{-- --}}
{{ $details->posProductModel->name }} @php $arrayProductId = json_decode($details->product_id, true); $resultStringProductId = implode(',', $arrayProductId); $productAllGet = \App\Models\pos\ProductConfig\PosProduct::whereIntegerInRaw('id',json_decode($details->product_id))->groupBy('name')->get(); //dd($productAll); @endphp @foreach($productAllGet as $keyProductP => $productPData) {{ $productPData->name }}
@endforeach
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() !!}