@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 = $billNo, [ 'class' => 'form-control', 'id' => 'purchase_no', 'type' => 'text', 'readonly', 'autocomplete' => 'off', ]) !!}

{!! Form::label('requisitionFrom', 'Requisition From:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::select('requisitionFrom', $branches, null, [ 'class' => 'form-control custom-select2', 'id' => 'requisitionFrom', 'placeholder' => 'Select Branch', 'required' => 'required', ]) !!}

{!! Form::label('requisitionTo', 'Requisition To:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::select('requisitionTo', $requisitionBranches, null, [ 'class' => 'form-control custom-select2', 'id' => 'branch_id', 'placeholder' => 'Select Branch', 'required' => 'required', ]) !!}

{!! Form::label('requisitionDate', 'Requisition Date:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('requisitionDate', $branch_active_date, ['class' => 'form-control', 'readonly']) !!}

{!! Form::label('total_amount', 'Total Amount:', ['class' => 'col-sm-4 control-label']) !!}
@if($isSalesPriceStatus == 'true') {!! Form::text('total_amount_with_sales_price', null, [ 'class' => 'form-control numeric', 'id' => 'total_amount_with_sales_price', 'readonly', 'min' => '0', ]) !!}

{!! Form::hidden('total_amount', null, [ 'class' => 'form-control numeric', 'id' => 'total_amount', 'readonly', 'min' => '0', ]) !!}

@else {!! Form::text('total_amount', null, [ 'class' => 'form-control numeric', 'id' => 'total_amount', 'readonly', 'min' => '0', ]) !!}

{!! Form::hidden('total_amount_with_sales_price', null, [ 'class' => 'form-control numeric', 'id' => 'total_amount_with_sales_price', 'readonly', 'min' => '0', ]) !!}

@endif
{!! Form::label('total_quantity', 'Total Quantity:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::number('total_quantity', null, [ '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']) !!}
@if($isSalesPriceStatus == 'true') @else @endif
Product Name Brand Model Qty Price Total Remove
@if ($isSalesPriceStatus == 'true') @else @endif @if ($isSalesPriceStatus == 'true') @else @endif
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() !!}