👁 查看:7185313ea5a54e4e9e37eca481b592542798235b.php
路径:/home/boguraj1/.trash/storage/framework/views/7185313ea5a54e4e9e37eca481b592542798235b.php
大小:6.58 KB · 修改:2026-07-24 16:30:35 · 权限:0644 · 可写
<?php $__env->startSection('title', 'Track Your Order'); ?>

<?php $__env->startSection('content'); ?>
<div class="container py-5">
    <div class="row justify-content-center">
        <div class="col-lg-7">
            <h2 class="section-title text-center">অর্ডার ট্র্যাক করুন</h2>
            <p class="text-center text-muted mb-4">আপনার অর্ডার নম্বর এবং মোবাইল নম্বর দিয়ে ট্র্যাক করুন।</p>

            <div class="card border-0 shadow-sm mb-4">
                <div class="card-body p-4">
                    <form action="<?php echo e(route('tracking.search')); ?>" method="POST">
                        <?php echo csrf_field(); ?>
                        <div class="mb-3">
                            <label class="form-label fw-semibold">Order Number</label>
                            <input type="text" name="order_number" class="form-control"
                                placeholder="ORD-XXXXXXXXXX" value="<?php echo e(request('order_number') ?? old('order_number')); ?>" required>
                        </div>
                        <div class="mb-3">
                            <label class="form-label fw-semibold">Mobile Number</label>
                            <input type="text" name="mobile" class="form-control"
                                placeholder="01XXXXXXXXX" value="<?php echo e(old('mobile')); ?>" required>
                        </div>
                        <button type="submit" class="btn btn-danger w-100 py-2 fw-semibold">
                            <i class="bi bi-search me-2"></i>Track Now
                        </button>
                    </form>
                </div>
            </div>

            <?php if(request()->isMethod('post')): ?>
                <?php if($order): ?>
                <div class="card border-0 shadow-sm">
                    <div class="card-body p-4">
                        <div class="d-flex justify-content-between align-items-start mb-4">
                            <div>
                                <h5 class="fw-bold mb-1"><?php echo e($order->order_number); ?></h5>
                                <span class="text-muted">Placed on <?php echo e($order->created_at->format('d M Y')); ?></span>
                            </div>
                            <span class="badge bg-<?php echo e($order->status_badge); ?> fs-6 px-3 py-2"><?php echo e(ucfirst($order->status)); ?></span>
                        </div>

                        
                        <div class="mb-4">
                            <h6 class="fw-bold text-muted mb-3">Items</h6>
                            <?php $__currentLoopData = $order->items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="d-flex justify-content-between mb-1">
                                <span><?php echo e($item->product_name); ?> <?php if($item->variation_details): ?><small class="text-muted">(<?php echo e($item->variation_details); ?>)</small><?php endif; ?></span>
                                <span class="fw-semibold"><?php echo e($item->quantity); ?> × ৳<?php echo e(number_format($item->price, 0)); ?></span>
                            </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <div class="d-flex justify-content-between mt-2 pt-2 border-top">
                                <strong>Total</strong>
                                <strong style="color:var(--primary)">৳<?php echo e(number_format($order->total, 0)); ?></strong>
                            </div>
                        </div>

                        
                        <div>
                            <h6 class="fw-bold text-muted mb-3">Tracking History</h6>
                            <?php if($order->trackingUpdates->count() > 0): ?>
                            <div class="timeline">
                                <?php $__currentLoopData = $order->trackingUpdates; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $update): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <div class="d-flex gap-3 mb-3">
                                    <div style="flex-shrink:0">
                                        <div style="width:36px;height:36px;background:var(--primary);border-radius:50%;display:flex;align-items:center;justify-content:center">
                                            <i class="bi bi-truck text-white" style="font-size:16px"></i>
                                        </div>
                                    </div>
                                    <div class="flex-grow-1 border-start ps-3 pb-3" style="border-color:#eee!important">
                                        <div class="fw-semibold" style="color:var(--dark)"><?php echo e($update->status); ?></div>
                                        <div class="text-muted" style="font-size:13px"><?php echo e($update->message); ?></div>
                                        <div class="text-muted mt-1" style="font-size:12px"><?php echo e($update->created_at->format('d M Y, h:i A')); ?></div>
                                    </div>
                                </div>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </div>
                            <?php else: ?>
                            <div class="text-center py-3">
                                <i class="bi bi-hourglass-split" style="font-size:36px;color:#ddd"></i>
                                <p class="text-muted mt-2">Your order is being processed. Tracking updates will appear here soon.</p>
                            </div>
                            <?php endif; ?>
                        </div>
                    </div>
                </div>
                <?php else: ?>
                <div class="alert alert-danger text-center">
                    <i class="bi bi-exclamation-circle me-2"></i>
                    No order found with this order number and mobile number. Please check and try again.
                </div>
                <?php endif; ?>
            <?php endif; ?>
        </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/boguraj1/public_html/udoktaecom/resources/views/frontend/tracking.blade.php ENDPATH**/ ?>