@extends('layouts/acc_layout') @section('title', '| Late Collection Deposit') @section('content')
Late Collection Deposit
{!! Form::open([ 'url' => isset($lateDeposit) ? url('lateCollectionDeposit/update/' . $lateDeposit->id) : url('lateCollectionDeposit/store'), 'role' => 'form', 'class' => 'form-horizontal form-groups', 'enctype' => 'multipart/form-data', ]) !!}
{!! Form::label('branchId', 'Branch:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::select('branch', ['' => 'Select'] + $branchList, $lateDeposit->branchId ?? null, [ 'class' => 'form-control', 'id' => 'branch', ]) !!}
{!! Form::label('bankRegisterId', 'Bank:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::select('bank', ['' => 'Select'] + $bankList, $lateDeposit->bankRegisterId ?? null, [ 'class' => 'form-control', 'id' => 'bank', ]) !!}
{!! Form::label('depositDate', 'Deposit Date:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('depositDate', $depositDate ?? null, [ 'class' => 'form-control depositDate', 'id' => 'depositDate', 'style' => 'text-align:left;cursor:pointer;', 'autocomplete' => 'off', Auth::user()->branchId == 1 ? '' : 'readonly', ]) !!}
{!! Form::label('cashInHand', 'Opening Cash In Hand:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('cashInHand', number_format($lateDeposit->cashInHand ?? 0), [ 'class' => 'form-control', 'id' => 'cashInHand', 'disabled' => 'true', ]) !!}
{!! Form::label('depositAmount', 'Deposit Amount:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('depositAmount', $lateDeposit->depositAmount ?? null, [ 'class' => 'form-control', 'id' => 'depositAmount', 'style' => 'text-align:left;', 'autocomplete' => 'off', ]) !!}
{!! Form::label('depositSlip', 'Deposit Slip:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::file('depositSlip', [ 'class' => 'form-control', 'id' => 'depositSlip', ]) !!} @if ( !empty($lateDeposit->depositSlip) && file_exists(public_path('uploads/images/accounting/depositslip/' . $lateDeposit->depositSlip))) @php $filePath = asset( 'uploads/images/accounting/depositslip/' . $lateDeposit->depositSlip, ); @endphp

View Current Deposit Slip

@endif
{!! Form::button('Submit', ['class' => 'btn btn-info submitButton', 'type' => 'submit']) !!} Close
{!! Form::close() !!}
@endsection