{{ __('Table') }}

Tables


@php $types = ['1' => 'Rounded','2' => 'Square']; $company = auth()->user()->company; $order_processing_time = $company->order_processing_time ? $company->order_processing_time:'10'; $order_processing_time = $order_processing_time."-".$order_processing_time+5; $active_discount = \App\Models\Discount::where('starts_at', '<=', \Carbon\Carbon::now()) ->where('company_id',$company->id) ->where(function ($query) { $query->orWhere('ends_at', '<=',\Carbon\Carbon::now()) ->orWhereNull('ends_at'); }) ->first(); @endphp @forelse($tables as $table) @empty @endforelse
# Table No Name Area Area Type Seats Type Status Action
{{ $loop->index+1 }} {{$table->name}} {{$table->area->name ?? ''}} {{$table->area->type ? ucfirst($table->area->type):''}} {{$table->seats}} {{'type'}} {{$table->status}}
@if($table->area->type=='pickup')
Scan To Order
or Pick Up Here
{{ QrCode::size(170)->backgroundColor(255,255,255)->generate(route('download.app')."?type=table&id=".$table->id) }}
Enjoy a ${{$active_discount ? $active_discount->amount:0}} Gift Card, Covering {{$active_discount ? $active_discount->terms:0}}% of your order
Experience Convenient Car-Loading Service
@else
Order Here!
Food served @ your table {{$order_processing_time}} min ETA
{{ QrCode::size(160)->backgroundColor(255,255,255)->generate(route('download.app')."?type=table&id=".$table->id) }}
Enjoy a ${{$active_discount ? $active_discount->amount:0}} Gift Card, Covering {{$active_discount ? $active_discount->terms:0}}% of your order
@endif
@csrf @method("DELETE")
No Table Found
{{--

Are you sure you want to delete this item?

--}}