File: /var/www/javago-portal-updates/storage/framework/views/4da762e888bbf2805a62f1e9bab5ca7c514a8c8c.php
<?php if(isset($isAvailable) && $isAvailable): ?>
<label class="switch s-coffee-medium-light ml-3 mr-3 mb-0">
<input type="checkbox" name="cafe_type" id="cafe_type" value="1"
<?php echo e(isset($row->is_active) && $row->is_active == 1 ? 'checked=' : ''); ?>>
<span class="slider round change-status" data-href="<?php echo e(route($currentRoute . '.status', encrypt($row->id))); ?>"
data-status="<?php echo e(isset($withStatus) ? $withStatus : false); ?>"></span>
</label>
<?php endif; ?>
<?php if(isset($isStatus) && $isStatus): ?>
<label class="switch s-coffee-medium-light ml-3 mr-3 mb-0">
<input type="checkbox" name="cafe_type" id="cafe_type" value="1"
<?php echo e(isset($row->status) && $row->status == 1 ? 'checked=' : ''); ?>>
<span class="slider round change-status" data-href="<?php echo e(route($currentRoute . '.status', encrypt($row->id))); ?>"
data-status="<?php echo e(isset($withStatus) ? $withStatus : false); ?>"></span>
</label>
<?php endif; ?>
<?php if(isset($is_admin_approved) && $is_admin_approved): ?>
<?php if($row->is_admin_approved == 0): ?>
<label class="switch s-coffee-medium-light ml-3 mr-3 mb-0">
<input type="checkbox" name="is_admin_approved" id="is_admin_approved" value="1"
<?php echo e(isset($row->is_admin_approved) && $row->is_admin_approved == 1 ? 'checked' : ''); ?>>
<span class="slider round change-admin-approval" data-href="<?php echo e(route($currentRoute . '.change-admin-approval', encrypt($row->id))); ?>"
data-status="<?php echo e(isset($row->is_admin_approved) ? $row->is_admin_approved : false); ?>"></span>
</label>
<?php else: ?>
<h3 class="btn btn-coffee-dark">Approved</h3>
<?php endif; ?>
<?php endif; ?>
<?php if(isset($isView) && $isView): ?>
<a href="<?php echo e(route($currentRoute . '.show', encrypt($row->id))); ?>" class="btn btn-coffee-medium dt-btn">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye">
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
<circle cx="12" cy="12" r="3"></circle>
</svg>
</a>
<?php endif; ?>
<?php if(isset($isApproved) && $isApproved): ?>
<?php if($row->approved == 0): ?>
<a data-href="<?php echo e(route($currentRoute . '.approve', encrypt($row->id))); ?>"
class="btn btn-coffee-edit approve-btn dt-btn">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round" class="feather feather-check">
<polyline points="20 6 9 17 4 12"></polyline>
</svg>
</a>
<?php endif; ?>
<?php endif; ?>
<?php if(isset($isEdit) && $isEdit): ?>
<a href="<?php echo e(route($currentRoute . '.edit', encrypt($row->id))); ?>" class="btn btn-coffee-edit dt-btn">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round" class="feather feather-edit-3">
<path d="M12 20h9"></path>
<path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path>
</svg>
</a>
<?php endif; ?>
<?php if(isset($isDelete) && $isDelete): ?>
<a data-href="<?php echo e(route($currentRoute . '.destroy', encrypt($row->id))); ?>"
class="btn btn-coffee-dark dt-btn delete-btn">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round" class="feather feather-trash-2">
<polyline points="3 6 5 6 21 6"></polyline>
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path>
<line x1="10" y1="11" x2="10" y2="17"></line>
<line x1="14" y1="11" x2="14" y2="17"></line>
</svg>
</a>
<?php endif; ?>
<?php if(isset($orderItems) && (is_array($orderItems) || is_object($orderItems))): ?>
<?php $__currentLoopData = $orderItems; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div>
<img src="<?php echo e(htmlspecialchars($item->item_image)); ?>" alt="<?php echo e(htmlspecialchars($item->item_name)); ?>" style="width: 20px; height: 20px;"/>
<strong><?php echo e(htmlspecialchars($item->item_name)); ?></strong> (<?php echo e(intval($item->item_quantity)); ?>)<br>
<span>Size: <?php echo e(htmlspecialchars($item->item_size)); ?></span><br>
<?php
// Assuming item_amount is a formatted string, convert to float for formatting
$amount = $item->item_amount;
echo 'Amount: ' . $amount . '<br>';
?>
<?php if(!empty($item->addon_sizes)): ?>
<strong>Add-ons:</strong><br>
<ul>
<?php $__currentLoopData = $item->addon_sizes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $addon): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<li>
Category: <?php echo e(htmlspecialchars($addon->addon_name)); ?><br>
Name: <?php echo e(htmlspecialchars($addon->addon_size_name)); ?><br>
Price: <?php echo e(htmlspecialchars($addon->addon_size_price)); ?><br>
</li>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</ul>
<?php else: ?>
<span>No Add-ons</span>
<?php endif; ?>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
<?php if(isset($order_completed)): ?>
<label class="switch s-coffee-medium-light ml-3 mr-3 mb-0" style="<?php echo e(isset($row->order_completed) && $row->order_completed == 1 ? 'display: none;' : ''); ?>">
<input type="checkbox" name="order_completed" id="order_completed_<?php echo e($row->id); ?>" value="1"
<?php echo e(isset($row->order_completed) && $row->order_completed == 1 ? 'checked' : ''); ?>>
<span class="slider round change-order-completed"
data-href="#"
data-status="<?php echo e($row->order_completed ?? 0); ?>"
data-id="<?php echo e($row->id); ?>"></span>
</label>
<?php if(isset($row->order_completed) && $row->order_completed == 1): ?>
<button class="completed-message success-btn dt-btn status-btn">Completed</button>
<?php endif; ?>
<?php endif; ?>
<?php if(!empty($estimated_arival_time)): ?>
<?php echo e(\Carbon\Carbon::createFromFormat('H:i', $estimated_arival_time)->format('h:i A')); ?>
<?php endif; ?>
<?php /**PATH /var/www/javago-portal-updates/resources/views/partials/action.blade.php ENDPATH**/ ?>