@extends('layouts.dashboard') @section('title',trans('layout.restaurant').' | '.$restaurant->name) @section('css') @endsection @section('main-content')

{{$restaurant->name}}

@if($restaurant->cover_image)
@endif
@if($restaurant->location)

{{$restaurant->location}}

{{trans('layout.location')}}

@endif @if($restaurant->email)

{{$restaurant->email}}

{{trans('layout.email')}}

@endif @if($restaurant->phone_number)

{{$restaurant->phone_number}}

{{trans('layout.phone_number')}}

@endif @if($restaurant->timing)

{{$restaurant->timing}}

{{trans('layout.timing')}}

@endif

{{trans('layout.description')}}

{!! clean($restaurant->description) !!}
@foreach($categories as $categoryName=>$categoryItems)

{{$categoryName}}'s {{trans('layout.items')}}

@foreach($categoryItems as $item)

{{$item->name}}

{{$item->details}}
@if($item->discount>0) @if($item->discount_type=='percent') @php $discount = $item->discount*$item->price /100; $total= $item->price - $discount ; @endphp {{isset($restaurant->currency_symbol)? $restaurant->currency_symbol.''.$item->price:formatNumberWithCurrSymbol($item->price)}} {{isset($restaurant->currency_symbol)? $restaurant->currency_symbol.''.$total :formatNumberWithCurrSymbol(($item->price-(($item->discount*$item->price)/100)))}} @elseif($item->discount_type=='flat') {{isset($restaurant->currency_symbol)? $restaurant->currency_symbol.''.$item->price:formatNumberWithCurrSymbol($item->price)}} {{isset($restaurant->currency_symbol)? $restaurant->currency_symbol.''.($item->price-$item->discount):formatNumberWithCurrSymbol($item->price-$item->discount)}} @endif @else {{formatNumberWithCurrSymbol($item->price)}} @endif @if($item->tax->title)
+ ({{$item->tax->type=='percentage'?formatNumber($item->tax->amount).'%': (isset($restaurant->currency_symbol)? $restaurant->currency_symbol.''.$item->tax->amount:formatNumberWithCurrSymbol($item->tax->amount))}} {{trans('layout.tax')}} )
@endif
@php $orderStatus = json_decode(get_settings('manage_place_order')); @endphp @if(isset($orderStatus->admin_order_status) && $orderStatus->admin_order_status=='enable' && isset($restaurant->order_status) && $restaurant->order_status=='enable')
@if(isset($order) && $order->payment_status !='paid') @else @endif
@endif
@endforeach
@endforeach
@csrf
{{trans('layout.overview')}}
{{trans('layout.payment')}}
@if(request()->get('table'))
@endif
@php $rest_gateway_credentials=get_restaurant_gateway_settings($restaurant->user_id); $isPaymentEnable=false; @endphp @php $credentials=isset($rest_gateway_credentials)?json_decode($rest_gateway_credentials->value):''; @endphp @if(isset($credentials->offline_status) && $credentials->offline_status=='active') @php $isPaymentEnable=true; // to enable submit button @endphp
@endif
@if((isset($credentials->paypal_status) && $credentials->paypal_client_id && $credentials->paypal_secret_key && $credentials->paypal_status=='active') || (isset($credentials->stripe_status) && $credentials->stripe_publish_key && $credentials->stripe_secret_key && $credentials->stripe_status=='active') || (isset($credentials->paytm_environment) && $credentials->paytm_mid && $credentials->paytm_secret_key && $credentials->paytm_website && $credentials->paytm_txn_url && $credentials->paytm_status=='active') || (isset($credentials->mollie_status) && $credentials->mollie_api_key && $credentials->mollie_status=='active') || (isset($credentials->paystack_public_key) && $credentials->paystack_secret_key && $credentials->paystack_status=='active')) @php $isPaymentEnable=true; // to enable submit button @endphp
@endif
@if($rest_gateway_credentials && $credentials) @if(isset($credentials->paypal_status) && $credentials->paypal_client_id && $credentials->paypal_secret_key && $credentials->paypal_status=='active')
@endif @if(isset($credentials->paytm_environment) && $credentials->paytm_mid && $credentials->paytm_secret_key && $credentials->paytm_website && $credentials->paytm_txn_url && $credentials->paytm_status=='active')
@endif @if(isset($credentials->mollie_status) && $credentials->mollie_api_key && $credentials->mollie_status=='active')
@endif @if(isset($credentials->paystack_public_key) && $credentials->paystack_secret_key && $credentials->paystack_status=='active')
@endif @if(isset($credentials->stripe_status) && $credentials->stripe_publish_key && $credentials->stripe_secret_key && $credentials->stripe_status=='active')
@endif @endif
{{-- View Order--}} {{-- End--}} {{-- Pay Now--}} {{-- End Pay Now--}} @php $orderStatus = json_decode(get_settings('manage_place_order')); @endphp @if(isset($orderStatus->admin_order_status) && $orderStatus->admin_order_status=='enable' && isset($restaurant->order_status) && $restaurant->order_status=='enable')
@if(isset($order) && $order->status !='delivered') @elseif(isset($order) && $order->status =='delivered' && $order->payment_status=='unpaid') @endif
@endif @endsection @section('js') @if(isset($credentials->stripe_status) && $credentials->stripe_status=='active') @endif @if(session()->has('order-success')) @endif @endsection