HEX
Server: Apache/2.4.41 (Amazon) OpenSSL/1.0.2k-fips PHP/5.6.40
System: Linux ip-172-31-40-18 4.14.146-93.123.amzn1.x86_64 #1 SMP Tue Sep 24 00:45:23 UTC 2019 x86_64
User: apache (48)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: /var/www/html/punjabcabs/storage/framework/views/0b6bdef30c8fab5b901f7e813e5ed5d6fadba39f.php
<div class="sidebar-chat-window">
	<div class="notifications">
	<div class="n-item">
		<div class="media">
			<div class="n-text"><strong>Name: </strong>
				<?php if($trip->first_name !=''): ?>
                    <?php echo e($trip->first_name); ?> <?php echo e($trip->last_name); ?>

                <?php else: ?>
                    No passenger
                <?php endif; ?>
            </div>
            <div class="n-text"><strong>Phone: </strong>
            	<?php if($trip->mobile !=''): ?>
                    <?php echo e($trip->mobile); ?>

                <?php else: ?>
                    -
                <?php endif; ?>
            </div>
			<div class="n-text"><strong>From: </strong><?php echo e(str_limit(strip_tags($trip->s_address), 40)); ?></div>
			<div class="n-text"><strong>To: </strong><?php echo e(str_limit(strip_tags($trip->d_address), 40)); ?></div>
			<div class="n-text"><strong>Service Type: </strong><?php if($trip->service_type): ?>
            <?php echo e($trip->service_type->name); ?>

            <?php endif; ?>
        	</div>
			<div class="n-text"><strong>Distance: </strong><?php echo e($trip->distance); ?> <?php echo e($diskm); ?></div>
			<div class="n-text"><strong>Payment Mode: </strong><?php echo e($trip->payment_mode); ?></div>
			<div class="n-text"><strong>Dispatch Mode: </strong>
			    <?php if($trip->current_provider_id ==0): ?>
			   		Manual
				<?php else: ?>
					Auto
				<?php endif; ?>
			</div>
			<div class="n-text">
				<?php if($trip->status =='SCHEDULED'): ?>
					<strong>Scheduled at: </strong><?php echo e(datetime_formatter($trip->schedule_at)); ?>

				<?php else: ?>
					<strong>Created at: </strong><?php echo e(datetime_formatter($trip->created_at)); ?>

				<?php endif; ?>
			</div>
			<?php if($trip->status =='CANCELLED'): ?>
			<div class="n-text">
				<strong>Cancelled: </strong>
				<?php if($trip->cancelled_by =='USER'): ?>
                    Cancelled by User
                    <?php endif; ?>
                    <?php if($trip->cancelled_by =='PROVIDER'): ?>
                    Cancelled by Driver
                    <?php endif; ?>
                    <?php if($trip->cancelled_by =='DISPATCHER'): ?>
                    Cancelled by Dispatcher
                    <?php endif; ?>
                    <?php if($trip->cancelled_by =='REJECTED'): ?>
                    All Drivers Rejected
                    <?php endif; ?>
                    <?php if($trip->cancelled_by =='NODRIVER'): ?>
                    No Drivers Found
                    <?php endif; ?>
			</div>
			<?php endif; ?>		

			<div class="n-text">
				<?php if($trip->status =='COMPLETED'): ?>
					<span class="label label-table label-success"> <?php echo e($trip->status); ?> </span>
				<?php elseif($trip->status =='CANCELLED'): ?>
					<span class="label label-table label-danger"> <?php echo e($trip->status); ?> </span>
				<?php elseif($trip->status =='SEARCHING'): ?>
					<span class="label label-table label-warning"> <?php echo e($trip->status); ?> </span>
				<?php elseif($trip->status =='SCHEDULED'): ?>
					<span class="label label-table label-primary"> <?php echo e($trip->status); ?> </span>
				<?php else: ?>
					<span class="label label-table label-info"> <?php echo e($trip->status); ?> </span>
				<?php endif; ?>
			</div>
			<input type="hidden" name="s_lat" id="s_latitude" value="<?php echo e($trip->s_latitude); ?>">
			<input type="hidden" name="s_long" id="s_longitude" value="<?php echo e($trip->s_longitude); ?>">
			<input type="hidden" name="d_lat" id="d_latitude" value="<?php echo e($trip->d_latitude); ?>">
			<input type="hidden" name="d_long" id="d_longitude" value="<?php echo e($trip->d_longitude); ?>">
		</div>
	</div>
</div>
</div>
<?php if($trip->current_provider_id ==0 || $trip->status =='CANCELLED'): ?>
<div class="box-bottom">
	<div class="s-title">
		<div class="box-block">
			Nearest Drivers
		</div>
	</div>
</div>
<table class="table">
	<tr>
		<th>Name</th>
		<th>Service Type</th>
		<th>Assign</th>
	</tr>
	<?php if($Providers->count() > 0): ?>
		<?php $__currentLoopData = $Providers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $Provider): $__env->incrementLoopIndices(); $loop = $__env->getFirstLoop(); ?>
		<tr>
			<th><?php echo e($Provider->first_name); ?><?php echo e($Provider->last_name); ?> <br>
				(<?php echo e($Provider->mobile); ?>)</th>
			<th><?php echo e($Provider->service->service_number); ?> <br>(<?php echo e($Provider->service->service_type->name); ?>)</td>
			<th><button class="btn btn-sm btn-success" id="assign" data-id="<?php echo e($trip->id); ?>" data-provider="<?php echo e($Provider->id); ?>">Assign</button></th>
		</tr>
		<?php endforeach; $__env->popLoop(); $loop = $__env->getFirstLoop(); ?>
	<?php else: ?>
	<tr>
		<td colspan="2" class="center">No Drivers Found</td>
	</tr>
	<?php endif; ?>
<?php endif; ?>