@extends('layouts.admin.app') @section('title', translate('messages.pos')) @push('css_or_js') @endpush @section('content')
{{translate('food_section')}}
@if(!$products->isEmpty())
@foreach ($products as $product)
@include('admin-views.pos._single_product', [ 'product' => $product, 'restaurant_data ' => $restaurant_data, ])
@endforeach
@else
img

{{translate('messages.food_search_text_pos')}}

@endif
{{translate('messages.billing_section')}}
{{ translate('Delivery Infomation') }} ({{ translate('Home Delivery') }})
@include('admin-views.pos._address')
@include('admin-views.pos._cart', ['restaurant_data ' => $restaurant_data])
@php($order = \App\Models\Order::with(['details', 'restaurant' => function ($query) { return $query->withCount('orders'); }, 'customer' => function ($query) { return $query->withCount('orders'); }, 'details.food' => function ($query) { return $query->withoutGlobalScope(\App\Scopes\RestaurantScope::class); }])->find(session('last_order'))) @if ($order) @php(session(['last_order' => false])) @endif
@endsection @push('script_2') @endpush