
<?php $__env->startSection('content'); ?>
<style>
    .shipment-deposits-page{max-width:1180px;margin:0 auto}.deposit-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;margin-bottom:14px;padding:18px;border-radius:22px;color:#fff;background:linear-gradient(135deg,#102033,#155c9d 58%,#0f766e);box-shadow:0 20px 50px rgba(15,23,42,.16);overflow:hidden;position:relative}.deposit-hero:after{content:"";position:absolute;right:-85px;top:-95px;width:250px;height:250px;border-radius:999px;background:rgba(255,255,255,.14)}.deposit-hero>*{position:relative;z-index:1}.deposit-kicker{display:inline-flex;align-items:center;gap:7px;padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18);font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;color:#dbeafe}.deposit-hero h1{margin:8px 0 4px;color:#fff;font-size:25px;font-weight:900;letter-spacing:-.03em}.deposit-hero p{margin:0;color:rgba(255,255,255,.86);font-size:13px}.deposit-count{min-width:92px;border-radius:18px;padding:12px 14px;text-align:center;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.18)}.deposit-count strong{display:block;color:#fff;font-size:26px;line-height:1}.deposit-count span{display:block;color:#dbeafe;font-size:10px;text-transform:uppercase;font-weight:900}.deposit-card{border:1px solid rgba(148,163,184,.22)!important;border-radius:20px!important;background:rgba(255,255,255,.95)!important;box-shadow:0 18px 44px rgba(15,23,42,.08)!important;overflow:hidden}.deposit-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 16px;border-bottom:1px solid #edf2f8;background:#fbfdff}.deposit-card-head h5{margin:0;color:#172b4d;font-weight:900}.deposit-table-wrap{padding:8px}.deposit-table{margin:0!important}.deposit-table td,.deposit-table th{vertical-align:middle!important}.deposit-client{font-weight:900;color:#102033}.deposit-email{display:block;font-size:12px;color:#64748b;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.deposit-actions{display:flex;flex-wrap:wrap;gap:5px}.deposit-actions .btn{margin:0!important;border-radius:10px!important;font-weight:850!important}.deposit-actions .btn-icon{width:32px;height:32px;padding:0!important;display:inline-flex;align-items:center;justify-content:center}.deposit-amount{font-weight:900;color:#155c9d;white-space:nowrap}
    html.admin-dark-mode body.admin-shell .deposit-card,body.admin-shell.dark-mode .deposit-card{background:#111c2e!important;border-color:#26364c!important;color:#e5edf7!important}html.admin-dark-mode body.admin-shell .deposit-card-head,body.admin-shell.dark-mode .deposit-card-head{background:#0b1628!important;border-color:#26364c!important}html.admin-dark-mode body.admin-shell .deposit-card-head h5,html.admin-dark-mode body.admin-shell .deposit-client,body.admin-shell.dark-mode .deposit-card-head h5,body.admin-shell.dark-mode .deposit-client{color:#e5edf7!important}html.admin-dark-mode body.admin-shell .deposit-email,body.admin-shell.dark-mode .deposit-email{color:#9fb0c4!important}html.admin-dark-mode body.admin-shell .deposit-amount,body.admin-shell.dark-mode .deposit-amount{color:#93c5fd!important}
    @media(max-width:767px){.deposit-hero{grid-template-columns:1fr;padding:15px;border-radius:18px}.deposit-count{width:100%;text-align:left}.deposit-table-wrap{overflow-x:auto}.deposit-actions{min-width:150px}.deposit-email{max-width:180px}.deposit-hero h1{font-size:21px}}
</style>

<div class="shipment-deposits-page">
    <div class="deposit-hero">
        <div>
            <span class="deposit-kicker"><i class="fa fa-credit-card"></i> Shipment Payments</span>
            <h1>Manage Shipment Deposits</h1>
            <p>Review proof uploads, process pending deposits, and keep customer payments in order.</p>
        </div>
        <div class="deposit-count">
            <strong><?php echo e(count($deposits)); ?></strong>
            <span>Deposits</span>
        </div>
    </div>

    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.danger-alert','data' => []]); ?>
<?php $component->withName('danger-alert'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.success-alert','data' => []]); ?>
<?php $component->withName('success-alert'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>

    <div class="deposit-card card shadow">
        <div class="deposit-card-head">
            <h5><i class="fa fa-receipt mr-2"></i>Deposit Records</h5>
        </div>
        <div class="deposit-table-wrap table-responsive" data-example-id="hoverable-table">
            <table id="ShipTable" class="table table-hover deposit-table">
                <thead>
                    <tr>
                        <th>Client name</th>
                        <th>Client email</th>
                        <th>Amount</th>
                        <th>Payment Method</th>
                        <th>Status</th>
                        <th>Date created</th>
                        <th>Option</th>
                    </tr>
                </thead>
                <tbody>
                    <?php $__currentLoopData = $deposits; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $deposit): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td>
                                <span class="deposit-client">
                                    <?php if($deposit->user > 0): ?>
                                        <?php echo e($deposit->name ?? 'N/A'); ?>

                                    <?php else: ?>
                                        <?php echo e($deposit->guest_name ?? 'Guest User'); ?>

                                    <?php endif; ?>
                                </span>
                            </td>
                            <td>
                                <span class="deposit-email">
                                    <?php if($deposit->user > 0): ?>
                                        <?php echo e($deposit->email ?? 'N/A'); ?>

                                    <?php else: ?>
                                        <?php echo e($deposit->guest_email ?? 'N/A'); ?>

                                    <?php endif; ?>
                                </span>
                            </td>
                            <td><span class="deposit-amount"><?php echo e($settings->currency ?? '$'); ?><?php echo e(number_format($deposit->amount)); ?></span></td>
                            <td><?php echo e($deposit->payment_mode); ?></td>
                            <td>
                                <?php if($deposit->status == 'Processed'): ?>
                                    <span class="badge badge-success"><?php echo e($deposit->status); ?></span>
                                <?php else: ?>
                                    <span class="badge badge-danger"><?php echo e($deposit->status); ?></span>
                                <?php endif; ?>
                            </td>
                            <td><?php echo e(date('M d, Y H:i:s', strtotime($deposit->created_at))); ?></td>
                            <td>
                                <div class="deposit-actions">
                                    <a href="<?php echo e(route('admin.view.deposit', $deposit->id)); ?>" class="btn btn-primary btn-sm btn-icon" title="View deposit details">
                                        <i class="fa fa-eye"></i>
                                    </a>
                                    <?php if($deposit->proof): ?>
                                        <a href="<?php echo e(route('admin.view.depositimage', $deposit->id)); ?>" class="btn btn-info btn-sm btn-icon" title="View payment screenshot">
                                            <i class="fa fa-image"></i>
                                        </a>
                                    <?php endif; ?>
                                    <a href="<?php echo e(route('admin.delete.deposit', $deposit->id)); ?>" class="btn btn-danger btn-sm">
                                        <i class="fa fa-trash"></i> Delete
                                    </a>
                                    <?php if($deposit->status != 'Processed'): ?>
                                        <a class="btn btn-success btn-sm" href="<?php echo e(route('admin.process.deposit', $deposit->id)); ?>">
                                            <i class="fa fa-check"></i> Process
                                        </a>
                                    <?php endif; ?>
                                </div>
                            </td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
            </table>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

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