<?php $__env->startSection('title', 'Invoice Patial Payment'); ?>

<?php $__env->startSection('content'); ?>
<div class="row">
    <div class="col-12 payment">
        <div class="card card-box">
            <div class="card-head text-black" style="background-color:#3FCC7E;">
                <header>Invoice - <?php echo e($id->id); ?> : Purchase Partial Payment</header>
            </div>
            <div class="card-body">
                <div class="row">
                    <?php echo Form::open(['route' => ['admin.purchase.partial.payment','id' => $id->id,'status' => $id->payment_type],'method' => 'POST']); ?>

                        <div class="row">
                            <div class="col-md-6 col-12">
                                <div class="form-group">
                                    <label for="expensehead_id">Select Expense Head</label>
                                    <select name="expensehead_id" id="expensehead_id" class="form-control select2">
                                        <?php $__currentLoopData = $expenseHeads; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $expenseHead): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <option value="<?php echo e($expenseHead->id); ?>"><?php echo e($expenseHead->name); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>
                                <div class="form-group">
                                    <label for="payment_amount">Payment Amount</label>
                                    <input type="number" name="payment_amount" class="form-control" id="payment_amount" max="<?php echo e($id->due); ?>" value="<?php echo e($id->due); ?>" autocomplete="off" required>
                                </div>
                                <div class="form-group">
                                    <label for="reference">Reference / Bill / Receipt No</label>
                                    <input type="text" name="reference" class="form-control" id="reference" value="<?php echo e(old('reference')); ?>" autocomplete="off">
                                </div>
                                
                            </div>
                            
                            <div class="col-md-6 col-12">
                                <div class="form-group">
                                    <label for="simpleFormEmail">Received By</label>
                                    <input type="text" name="received_by" class="form-control" id="simpleFormEmail" value="<?php echo e(auth()->user()->name); ?>">
                                </div>
                                <div class="form-group">
                                    <label class="">Payment Date</label>
                                    <div class="input-group date form_date" data-date="<?php echo e(\Carbon\Carbon::now()); ?>" data-date-format="dd MM yyyy" data-link-field="dtp_input1">
                                        <input class="form-control" size="16" type="text" name="payment_date" value="<?php echo e(\Carbon\Carbon::now()->format('d M Y')); ?>">
                                        <span class="input-group-addon ml-2">
                                            <span class="fa fa-calendar"></span>
                                        </span>
                                    </div>
                                    <input type="hidden" id="dtp_input1" value="" />
                                </div>
                                <div class="form-group">
                                    <label for="payment_gateway">Select Payment Gateway</label>
                                    <select name="payment_gateway" id="payment_gateway" class="form-control select2">
                                        <?php $__currentLoopData = \App\Models\PaymentGateway::get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $gateway): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> 
                                            <option value="<?php echo e($gateway->id); ?>"><?php echo e($gateway->gateway_name); ?>(<?php echo e($gateway->gateway_account_number); ?>)</option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-12">
                                <?php echo Form::submit('Collect',['class' => 'btn btn-success pull-right']); ?>

                            </div>
                        </div>

                    <?php echo Form::close(); ?>

                </div>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('template.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/forazitradersbd/public_html/resources/views/admin/purchaseinvocie/partial/payment.blade.php ENDPATH**/ ?>