@extends('layouts/pos_layout') @section('title', '| Edit Opening Balance') @section('content') @php use App\Models\pos\ProductConfig\PosProduct; @endphp
Opening Balance Edit
{!! Form::open([ 'url' => '', 'enctype' => 'multipart/form-data', 'role' => 'form', 'class' => 'form-horizontal form-groups', ]) !!}
{!! Form::hidden('row_id', $posOpeningBalancesDetails->id ?? null, [ 'class' => 'form-control', 'id' => 'row_id', 'readonly', ]) !!} {!! Form::label('branch_id', 'Branch : *', ['class' => 'col-sm-3 control-label']) !!}

{!! Form::label('Opening Date', 'Opening Date :', ['class' => 'col-sm-5 control-label']) !!}
{!! Form::text('opening_date', date('d-m-Y', strtotime($posOpeningBalancesDetails->opening_date)) ?? null, [ 'class' => 'form-control', 'id' => 'opening_date_id', 'readonly', ]) !!}

Customer Information

{!! Form::label('Customer', 'Customer Id No : *', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::hidden('customer_id', $posOpeningBalancesDetails->customer_id ?? null, [ 'class' => 'form-control', 'id' => 'customer_id', 'readonly', ]) !!} {!! Form::text('customer_id_no', $posOpeningBalancesDetails->customer->customer_id_no ?? null, [ 'class' => 'form-control', 'id' => 'customer_id', 'readonly', ]) !!}

{!! Form::label('Customer Name', 'Customer Name :', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('customer_name', null, ['class' => 'form-control', 'id' => 'customer_name', 'readonly']) !!}

{!! Form::label('Spouse Name', 'Spouse Name :', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('spouse_name', null, ['class' => 'form-control', 'id' => 'spouse_name', 'readonly']) !!}

{!! Form::label('Customer Contact No', 'Customer Contact No :', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('customer_contact_no', null, [ 'class' => 'form-control', 'id' => 'customer_contact_no', 'readonly', ]) !!}

{!! Form::label('Customer NID', 'Customer NID :', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('customer_nid', null, ['class' => 'form-control', 'id' => 'customer_nid', 'readonly']) !!}
{!! Form::label('Pass Book Number', 'Pass Book Number:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('pass_no', $posOpeningBalancesDetails->sale->pass_book_no ?? null, [ 'class' => 'form-control', 'id' => 'pass_no', ]) !!}

Product Information

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

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

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

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

{!! Form::label('Product EMEI/PID No', 'Product EMEI/PID No:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('pid_emei_number', $posOpeningBalancesDetails->pid_emei_number ?? null, [ 'class' => 'form-control', 'id' => 'pid_emei_number', ]) !!}
{!! Form::label('Installment Package', 'Installment Package: *', ['class' => 'col-sm-4 control-label']) !!}

Sale Information

{!! Form::label('Sale Bill No', 'Sale Bill No* :', ['class' => 'col-sm-4 control-label']) !!}
SLS001 {!! Form::hidden('branch_code', $posOpeningBalancesDetails->branch->branch_code ?? null, [ 'class' => 'form-control', 'id' => 'branch_code', ]) !!} {!! Form::hidden('processing_fee_id', $posOpeningBalancesDetails->processing_fee_id ?? null, [ 'class' => 'form-control', 'id' => 'processing_fee_id', ]) !!} {!! Form::hidden('service_charge', $posOpeningBalancesDetails->service_charge ?? null, [ 'class' => 'form-control', 'id' => 'service_charge', ]) !!} {!! Form::hidden('others_fee_id', $posOpeningBalancesDetails->others_fee_id ?? null, [ 'class' => 'form-control', 'id' => 'others_fee_id', ]) !!} {!! Form::hidden('others_fee', $posOpeningBalancesDetails->others_fee_amount ?? null, [ 'class' => 'form-control', 'id' => 'others_fee', ]) !!} {!! Form::text('sale_bill_no', $posOpeningBalancesDetails->sale_bill_no ?? null, [ 'class' => 'form-control', 'id' => 'sale_bill_no', 'required' => 'required', 'readonly' => 'readonly', ]) !!} {!! Form::hidden('sale_bill_no', $posOpeningBalancesDetails->sale_bill_no ?? null, [ 'class' => 'form-control', 'id' => 'sale_bill_no_insert', ]) !!}

{!! Form::label('Sale Amount', 'Sale Amount :', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('sale_amount', $posOpeningBalancesDetails->opening_amount ?? null, [ 'class' => 'form-control', 'id' => 'sale_amount', ]) !!}
{!! Form::label('Installment Amount', 'Installment Amount:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('installment_amount', $posOpeningBalancesDetails->installment_amount ?? null, [ 'class' => 'form-control', 'readonly', 'id' => 'installment_amount', ]) !!}
{!! Form::label('Balance', 'Balance:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('balance', $posOpeningBalancesDetails->balance ?? null, [ 'class' => 'form-control', 'id' => 'balance', ]) !!}
{!! Form::label('Paid Amount', 'Paid Amount :', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('paid_amount', $posOpeningBalancesDetails->paid_amount ?? null, [ 'class' => 'form-control', 'id' => 'paid_amount', 'readonly', ]) !!}
{!! Form::label('Sale Date', 'Sale Date* :', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('sales_date', date('d-m-Y', strtotime($posOpeningBalancesDetails->sales_date)) ?? null, [ 'class' => 'form-control datePickerSale', 'id' => 'sale_date', ]) !!}

{!! Form::label('Last Collection Date', 'Last Collection Date :', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text( 'last_collection_Date', date('d-m-Y', strtotime($posOpeningBalancesDetails->last_collection_date)) ?? null, [ 'class' => 'form-control datePicker', 'id' => 'last_collection_Date', ], ) !!}
{!! Form::label('submit', ' ', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::submit('Update', ['id' => 'add', 'class' => 'btn btn-info']) !!} Close
{!! Form::close() !!}