@extends('layouts/pos_layout') @section('title', '| ' . $moduleTitle) @section('content')
{{ $moduleTitle }}
{!! Form::open(['url' => '', 'role' => 'form', 'class' => 'form-horizontal form-groups', 'id' => 'formId']) !!}
{!! Form::label('customer', 'Customer:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('customer', $data->customer->name, ['class' => 'form-control', 'id' => 'customer', 'readonly']) !!}
{!! Form::label('billNo', 'Chalan No:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('bill_no', $salesBillNo, [ 'class' => 'form-control', 'id' => 'bill_no', 'type' => 'text', 'readonly', 'autocomplete' => 'off', ]) !!}
{!! Form::label('work_order_po_number', 'Work Order/PO Number:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('work_order_po_number', $data->work_order_po_number, ['class' => 'form-control', 'id' => 'work_order_po_number']) !!}

{!! Form::label('transaction_date', 'Date:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('transaction_date', date('d-m-Y', strtotime($data->chalan_sales_date)), [ 'class' => 'form-control', 'id' => 'transaction_date', 'readonly', ]) !!}
{!! Form::label('stock', 'Stock:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('stock', null, ['class' => 'form-control', 'id' => 'stock', 'readonly']) !!}
{!! Form::label('total_quantity', 'Total Quantity:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('total_quantity', $data->total_quantity, [ 'class' => 'form-control', 'id' => 'total_quantity', 'readonly', ]) !!}
{!! Form::label('delivery_location', 'Delivery Location:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::textarea('delivery_location', $data->delivery_location, array('class'=>'form-control','rows'=>2, 'id' => 'delivery_location','placeholder' => 'Enter Delivery Location','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']) !!}
@if ($isBarcodeStatus == 'false') @endif {{-- --}} @if ($isBarcodeStatus == 'false') @endif @php $t_qty = 0; $t_dis = 0; $t_dis_amount = 0; $t_dis_amount_total = 0; $t_price = 0; $i = 0; @endphp @foreach ($data->chalanDetails as $record) @php $quantity = 0; $quantity = $record->quantity; $discount_percent_get = $record->posDiscountConfig ? ($discount_percent = $record->posDiscountConfig->discount_percent) : ($discount_percent = $record->discount_percent); $discount_percent_amount = ($record->unit_amount * $discount_percent) / 100; $amount_total_after_discount = round($record->unit_amount - $discount_percent_amount); $discount_percent_amount_total = ($discount_percent_amount * 100) / ($discount_percent != 0 ? $discount_percent : 1); @endphp @if ($isBarcodeStatus == 'false') @endif @php $t_qty += $quantity; $t_price += $quantity * $record->chalan_sales_amount; $t_dis += $discount_percent; $t_dis_amount_total += $discount_percent_amount; $t_price += $quantity * $record->chalan_sales_amount; $i++; @endphp @endforeach {{-- --}}
Product BarcodePID/IMEI NumberQtyDiscount Price Discount Price TotalAction
@endif>Total Quantity Total Amount

{!! Form::label('submit', ' ', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::submit('Update', ['id' => 'add', 'class' => 'btn btn-info submit-btn']) !!} Close
{!! Form::close() !!}