<?php
    use Carbon\Carbon;
?>


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

<?php $__env->startPush('css'); ?>
<?php $__env->stopPush(); ?>

<?php $__env->startSection('content'); ?>

    <div class="btn-group">
        <a style="color:white; font-size:15px; padding: 3px 7px 5px 0;" href="<?php echo e(route('admin.payment.index')); ?>" id="addRow1" class="btn deepPink-bgcolor">
            <i style="color:white; font-size:12px; padding: 3px;" class="fa fa-arrow-left"></i>BACK
        </a>
    </div>
    <div class="card">
        <div class="card-topline-aqua">
            <header></header>
        </div>
        <div class="white-box">
            <!-- Nav tabs -->
            <div class="p-rl-20">
                <ul class="nav customtab nav-tabs" role="tablist">
                    <li class="nav-item"><a href="#tab1" class="nav-link active"  data-toggle="tab" >Farmer Details</a></li>
                </ul>
            </div>
            <!-- Tab panes -->
            <div class="tab-content">
                <div class="tab-pane active fontawesome-demo" id="tab1">
                    <div id="biography" >
                        <div class="row">
                            <div class="col-md-3 col-6"> <strong>Purpose</strong>
                                <br>
                                <p class="text-muted"><?php echo e(\App\Models\ExpenseHead::find( $payment->expensehead_id )?->name); ?></p>
                            </div>

                            <?php if(is_null($payment->company_id) && is_null($payment->user_id) && is_null($payment->farmer_id)): ?>
                                <div class="col-md-3 col-6"> <strong>Company</strong>
                                    <br>
                                    <p class="text-muted">
                                        <?php echo e(ucwords($payment->payee_type)); ?>

                                    </p>
                                </div>

                            <?php elseif(is_null($payment->farmer_id) && is_null($payment->user_id)): ?>
                                <div class="col-md-3 col-6"> <strong>Company</strong>
                                    <br>
                                    <p class="text-muted">

                                        <?php echo e($payment->company->name); ?>


                                    </p>
                                </div>

                            <?php elseif(is_null($payment->company_id) && is_null($payment->user_id)): ?>
                                <div class="col-md-3 col-6 b-r"> <strong>Farmer</strong>
                                    <br>
                                    <p class="text-muted">
                                        <?php echo e($payment->farmer->name); ?>

                                    </p>
                                </div>

                            <?php elseif(is_null($payment->company_id) && is_null($payment->farmer_id)): ?>
                                <div class="col-md-3 col-6 b-r"> <strong>Staff</strong>
                                    <br>
                                    <p class="text-muted">
                                        <?php echo e($payment->user->name); ?>

                                    </p>
                                </div>
                            <?php endif; ?>

                            <div class="col-md-3 col-6 b-r"> <strong>Payment Amount</strong>
                                <br>
                                <p class="text-muted"><?php echo e($payment->payment_amount); ?></p>
                            </div>
                        </div>
                        <hr>
                        <div class="row">

                            <div class="col-md-3 col-6 b-r"> <strong>Payment Type</strong>
                                <br>
                                <p class="text-muted"><?php echo e(\App\Models\PaymentGateway::find( $payment->payment_type )?->gateway_name); ?></p>
                            </div>
                            <div class="col-md-3 col-6 b-r"> <strong>Bank Name</strong>
                                <br>
                                <p class="text-muted"><?php echo e($payment->bank_name); ?></p>
                            </div>
                            <div class="col-md-3 col-6 b-r"> <strong>Received By</strong>
                                <br>
                                <p class="text-muted"><?php echo e($payment->received_by); ?></p>
                            </div>
                            <div class="col-md-3 col-6 b-r"> <strong>Paymet Date</strong>
                                <br>
                                <p class="text-muted"><?php echo e(Carbon::parse($payment->payment_date)->toDayDateTimeString()); ?></p>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
        </div>
    </div>

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

<?php $__env->startPush('js'); ?>

<?php $__env->stopPush(); ?>



<?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/payment/show.blade.php ENDPATH**/ ?>