HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ip-172-26-0-120 6.17.0-1009-aws #9~24.04.2-Ubuntu SMP Fri Mar 6 23:50:29 UTC 2026 x86_64
User: ubuntu (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/html/dashboard.orbiwheels.com/storage/framework/views/22459e2e2e2d183eb71f88a288f81054.php
<?php $__env->startSection('content'); ?>
    <div class="right_col" role="main">
        <div class="">
            
            <div class="clearfix"></div>
            <div class="row" style="display: block;">
                <div class="col-md-12 col-sm-12">
                    <div class="x_panel">
                        <div class="x_title d-flex justify-content-between align-items-center">
                            <div class="gap-2 d-flex">
                                <h2>Ride Details</h2>
                                <?php switch($ride->status):
                                    case (0): ?>
                                        <span class="badge badge-warning text-white px-3 py-2 ml-4"
                                            style="font-size: medium">Pending</span>
                                    <?php break; ?>

                                    <?php case (1): ?>
                                        <span class="badge badge-dark text-white px-3 py-2 ml-4"
                                            style="font-size: medium">Assigned</span>
                                    <?php break; ?>

                                    <?php case (2): ?>
                                        <span class="badge badge-info text-white px-3 py-2 ml-4"
                                            style="font-size: medium">Ongoing</span>
                                    <?php break; ?>

                                    <?php case (3): ?>
                                        <span class="badge badge-success text-white px-3 py-2 ml-4"
                                            style="font-size: medium">Completed</span>
                                    <?php break; ?>

                                    <?php case (4): ?>
                                        <span class="badge badge-danger text-white px-3 py-2 ml-4"
                                            style="font-size: medium">Cancelled</span>
                                    <?php break; ?>

                                    <?php default: ?>
                                        <span class="badge badge-secondary text-white px-3 py-2 ml-4"
                                            style="font-size: medium">Unknown</span>
                                <?php endswitch; ?>
                            </div>
                        </div>

                        <div class="x_content">
                            <div class="row">
                                <div class="col-md-9 col-sm-9">
                                    <ul class="stats-overview">
                                        <li>
                                            <span class="name"><i class="fa fa-calendar"></i> Date </span>
                                            <span
                                                class="value text-success"><?php echo e(\Carbon\Carbon::parse($ride->ride_date)->format('d-m-Y')); ?></span>
                                        </li>
                                        <li>
                                            <span class="name"><i class="fa fa-road"></i> Distance </span>
                                            <span class="value text-success"><?php echo e($ride->distance_km); ?>

                                                <small>Km</small></span>
                                        </li>
                                        <li>
                                            <span class="name"><i class="fa fa-money"></i> Transporter Earnings </span>
                                            <span class="value text-success"><?php echo e($ride->fare); ?> <small>INR</small></span>
                                        </li>
                                    </ul>
                                    <ul class="stats-overview">

                                        <li>
                                            <span class="name"><i class="fa fa-percent"></i> GST Charges </span>
                                            <span class="value text-success">
                                                <?php echo e($ride->gst_on_commission); ?> <small>INR</small>
                                            </span>
                                        </li>

                                        <li>
                                            <span class="name"><i class="fa fa-briefcase"></i> Platform Fee </span>
                                            <span class="value text-success">
                                                <?php echo e($ride->ride_commission); ?> <small>INR</small>
                                            </span>
                                        </li>

                                        <li>
                                            <span class="name"><i class="fa fa-money"></i> Total Customer Amount </span>
                                            <span class="value text-success">
                                                <?php echo e($ride->total_customer_amount); ?> <small>INR</small>
                                            </span>
                                        </li>
                                    </ul>
                                    <br />

                                    <div id="map" style="height: 350px; width: 100%;"></div>
                                </div>

                                <!-- Ride Details Sidebar -->
                                <div class="col-md-3 col-sm-3">
                                    <section class="panel">
                                        <div class="x_title">
                                            <h2>Info</h2>
                                            <div class="clearfix"></div>
                                        </div>
                                        <div class="panel-body">
                                            <h6 class="green"><i class="fa fa-taxi"></i>
                                                Ride Info
                                            </h6>
                                            <div class="project_detail d-flex justify-content-between align-items-center">
                                                <p class="title">Date</p>
                                                <p><?php echo e(\Carbon\Carbon::parse($ride->ride_date)->format('M d, Y')); ?></p>
                                            </div>
                                            <div class="project_detail d-flex justify-content-between align-items-center">
                                                <p class="title">Pickup Time</p>
                                                <p><?php echo e(\Carbon\Carbon::parse($ride->pickup_time)->format('h:i A')); ?></p>
                                            </div>
                                            <?php if($ride->return_time): ?>
                                                <div
                                                    class="project_detail d-flex justify-content-between align-items-center">
                                                    <p class="title">Return Time</p>
                                                    <p><?php echo e(\Carbon\Carbon::parse($ride->return_time)->format('h:i A')); ?></p>
                                                </div>
                                            <?php endif; ?>
                                            <div class="project_detail d-flex justify-content-between align-items-center">
                                                <p class="title">Pickup Location</p>
                                                <p><?php echo e($ride->locations['pickup_location'] ?? 'N/A'); ?></p>
                                            </div>
                                            <div class="project_detail d-flex justify-content-between align-items-center">
                                                <p class="title">Drop Location</p>
                                                <p><?php echo e($ride->locations['drop_location'] ?? 'N/A'); ?></p>
                                            </div>
                                        </div>
                                        <?php if($ride->booking && $ride->booking->transporter): ?>
                                            <hr>
                                            <div class="panel-body">
                                                <h6 class="green"><i class="fa fa-user"></i>
                                                    Transporter
                                                </h6>
                                                <div
                                                    class="project_detail d-flex justify-content-between align-items-center">
                                                    <p class="title">Name</p>
                                                    <p><?php echo e($ride->booking->transporter->company_name ?? ''); ?></p>
                                                </div>
                                                <div
                                                    class="project_detail d-flex justify-content-between align-items-center">
                                                    <p class="title">Contact Person</p>
                                                    <p><?php echo e($ride->booking->transporter->contact_person ?? ''); ?></p>
                                                </div>
                                                <div
                                                    class="project_detail d-flex justify-content-between align-items-center">
                                                    <p class="title">Email</p>
                                                    <p><?php echo e($ride->booking->transporter->email ?? ''); ?></p>
                                                </div>
                                                <div
                                                    class="project_detail d-flex justify-content-between align-items-center">
                                                    <p class="title">Phone</p>
                                                    <p><?php echo e($ride->booking->transporter->phone ?? ''); ?></p>
                                                </div>
                                            </div>
                                        <?php endif; ?>
                                        <?php if($ride->booking && $ride->booking->customer): ?>
                                            <hr>
                                            <div class="panel-body">
                                                <div class="d-flex justify-content-between align-items-center">
                                                    <h6 class="green mb-0">
                                                        <i class="fa fa-user me-1"></i> Customer
                                                    </h6>
                                                    
                                                    <img src="<?php echo e(asset('images/user.png')); ?>" alt="Customer Profile"
                                                        class="rounded-circle" width="40" height="40">
                                                </div>
                                                <div
                                                    class="project_detail d-flex justify-content-between align-items-center">
                                                    <p class="title">Name</p>
                                                    <p><?php echo e($ride->booking->customer->first_name ?? ''); ?>

                                                        <?php echo e($ride->booking->customer->last_name ?? ''); ?></p>
                                                </div>
                                                <div
                                                    class="project_detail d-flex justify-content-between align-items-center">
                                                    <p class="title">Email</p>
                                                    <p><?php echo e($ride->booking->customer->email ?? ''); ?></p>
                                                </div>
                                                <div
                                                    class="project_detail d-flex justify-content-between align-items-center">
                                                    <p class="title">Phone</p>
                                                    <p><?php echo e($ride->booking->customer->phone ?? ''); ?></p>
                                                </div>
                                            </div>
                                        <?php endif; ?>
                                        <?php if($ride->vehicle): ?>
                                            <hr>
                                            <div class="panel-body">
                                                <div class="d-flex justify-content-between align-items-center">
                                                    <h6 class="green mb-0">
                                                        <i class="fa fa-user me-1"></i> Vehicle
                                                    </h6>
                                                    
                                                    <img src="<?php echo e($ride->vehicle->vehicle_image ? asset('storage/' . $ride->vehicle->vehicle_image) : asset('images/texi.jpg')); ?>"
                                                        alt="Customer Profile" class="rounded-circle" width="40"
                                                        height="40">
                                                </div>
                                                <div
                                                    class="project_detail d-flex justify-content-between align-items-center">
                                                    <p class="title">Registration No</p>
                                                    <p><?php echo e($ride->vehicle->registration_number ?? 'Not Assigned'); ?></p>
                                                </div>
                                                <div
                                                    class="project_detail d-flex justify-content-between align-items-center">
                                                    <p class="title">Make</p>
                                                    <p><?php echo e($ride->vehicle->make ?? ''); ?></p>
                                                </div>
                                                <div
                                                    class="project_detail d-flex justify-content-between align-items-center">
                                                    <p class="title">Model</p>
                                                    <p><?php echo e($ride->vehicle->model ?? ''); ?></p>
                                                </div>
                                                <div
                                                    class="project_detail d-flex justify-content-between align-items-center">
                                                    <p class="title">Year</p>
                                                    <p><?php echo e($ride->vehicle->year ?? ''); ?></p>
                                                </div>
                                                <div
                                                    class="project_detail d-flex justify-content-between align-items-center">
                                                    <p class="title">Capacity</p>
                                                    <p><?php echo e($ride->vehicle->capacity_kg ?? ''); ?></p>
                                                </div>
                                            </div>
                                        <?php endif; ?>
                                        <?php if($ride->driver): ?>
                                            <hr>
                                            <div class="panel-body">
                                                <div class="d-flex justify-content-between align-items-center">
                                                    <h6 class="green mb-0">
                                                        <i class="fa fa-user me-1"></i> Driver
                                                    </h6>
                                                    
                                                    <img src="<?php echo e($ride->driver->image ? asset('storage/' . $ride->driver->image) : asset('images/user.png')); ?>"
                                                        alt="Customer Profile" class="rounded-circle" width="40"
                                                        height="40">
                                                </div>
                                                <div
                                                    class="project_detail d-flex justify-content-between align-items-center">
                                                    <p class="title">Name</p>
                                                    <p><?php echo e($ride->driver->name ?? 'Not Assigned'); ?></p>
                                                </div>
                                                <div
                                                    class="project_detail d-flex justify-content-between align-items-center">
                                                    <p class="title">Phone</p>
                                                    <p><?php echo e($ride->driver->phone ?? ''); ?></p>
                                                </div>
                                                <div
                                                    class="project_detail d-flex justify-content-between align-items-center">
                                                    <p class="title">Email</p>
                                                    <p><?php echo e($ride->driver->email ?? ''); ?></p>
                                                </div>
                                                <div
                                                    class="project_detail d-flex justify-content-between align-items-center">
                                                    <p class="title">License No</p>
                                                    <p><?php echo e($ride->driver->license_number ?? ''); ?></p>
                                                </div>
                                                <div
                                                    class="project_detail d-flex justify-content-between align-items-center">
                                                    <p class="title">Experience</p>
                                                    <p><?php echo e($ride->driver->experience_years ? $ride->driver->experience_years . ' years' : 'N/A'); ?>

                                                    </p>
                                                </div>
                                            </div>
                                        <?php endif; ?>
                                    </section>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="modal fade" id="reasonModal" tabindex="-1" role="dialog" aria-labelledby="reasonModalLabel">
        <div class="modal-dialog" role="document">
            
            <?php echo csrf_field(); ?>
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title">Request Driver/Vehicle Change</h5>
                    <button type="button" class="close" data-dismiss="modal"><span>&times;</span></button>
                </div>
                <div class="modal-body">
                    <div class="form-group">
                        <label for="reason">Reason for Change</label>
                        <textarea name="reason" class="form-control" required placeholder="Enter reason here"></textarea>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
                    <button type="submit" class="btn btn-primary">Submit Request</button>
                </div>
            </div>
            
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('script'); ?>
    <script>
        var pickup = [<?php echo e($ride->locations['pickup_lat']); ?>, <?php echo e($ride->locations['pickup_lng']); ?>];
        var drop = [<?php echo e($ride->locations['drop_lat']); ?>, <?php echo e($ride->locations['drop_lng']); ?>];

        var map = L.map('map').setView(pickup, 13);

        L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
            attribution: '© OpenStreetMap contributors'
        }).addTo(map);

        L.marker(pickup).addTo(map).bindPopup("Pickup: <?php echo e($ride->locations['pickup_location']); ?>").openPopup();

        L.marker(drop).addTo(map).bindPopup("Drop: <?php echo e($ride->locations['drop_location']); ?>");

        var routeLine = L.polyline([pickup, drop], {
            color: 'blue',
            weight: 5
        }).addTo(map);

        map.fitBounds(routeLine.getBounds());
    </script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('layout.master', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /var/www/html/dashboard.orbiwheels.com/resources/views/admin/rides/view.blade.php ENDPATH**/ ?>