@extends('layouts/pos_layout') @section('title', '|' . $moduleTitle) @section('style') @endsection @section('content')
{{ $moduleTitle }}
{!! Form::open([ 'url' => '', 'role' => 'form', 'class' => 'form-horizontal form-groups', 'id' => 'purchaseForm', ]) !!}
{!! Form::label('billNo', 'Bill No:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('billNo', $value = $data->requisitionBillNo, [ 'class' => 'form-control', 'id' => 'purchase_no', 'type' => 'text', 'readonly', 'autocomplete' => 'off', ]) !!}

{!! Form::label('requisitionFrom', 'Requisition From:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('requisitionFromName', $value = $data->fromBranch->name, [ 'class' => 'form-control', 'id' => 'requisitionFromName', 'type' => 'text', 'readonly', 'autocomplete' => 'off', ]) !!}

{!! Form::label('requisitionTo', 'Requisition To:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('requisitionToBranchName', $value = $data->toBranch->name, [ 'class' => 'form-control', 'id' => 'requisitionToBranch', 'type' => 'text', 'readonly', 'autocomplete' => 'off', ]) !!}

{!! Form::label('requisitionDate', 'Requisition Date:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('requisitionDate', date('d-m-Y', strtotime($data->requisitionDate)), [ 'class' => 'form-control', 'readonly', ]) !!}

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

{!! Form::label('total_quantity', 'Total Quantity:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::number('total_quantity', $data->totalQuantity, [ 'class' => 'form-control numeric', 'id' => 'total_quantity', 'readonly', 'min' => '0', ]) !!}

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

{!! 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 = $t_cprice = $t_price = $iRow = 1; @endphp @foreach($data->transfer_requisition_details_for_edit as $details) @php $t_qty += $details->quantity; $t_cprice += $details->costPrice; $t_price += ($details->quantity * $details->costPrice); @endphp @endforeach
Product Name Brand Model Qty Price Total Remove
Total Quantity {{ $t_qty }} Total Amount {{ $t_price }}
{!! Form::label('Submit', ' ', ['class' => 'col-sm-4 control-label ']) !!}
{!! Form::submit('Submit', ['id' => 'add', 'class' => 'btn btn-info submit-btn']) !!} Close
{!! Form::close() !!}