@extends('layouts.admin.app') @section('title', $restaurant->name . "'s" . translate('messages.subscription')) @push('css_or_js') @endpush @section('content')
@if (isset($rest_subscription))

{{translate('Billing')}}

img/subscription
{{ translate('messages.expire_date') }}
@if ($rest_subscription->status == 0)

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

{{ $rest_subscription->expiry_date->format('d M Y') }} @else

{{ $rest_subscription->expiry_date->format('d M Y') }}

@endif
img/subscription
{{ translate('messages.Total_bill') }}

{{ \App\CentralLogics\Helpers::format_currency($total_bill) }}

img/subscription
{{ translate('messages.number_of_uses') }}

{{ $rest_subscription->total_package_renewed+1 }}

{{translate('Subscription Plan')}}

{{ $rest_subscription->package->package_name }}

{{$rest_subscription->package->text }}

{{ \App\CentralLogics\Helpers::format_currency($rest_subscription->package->price) }} / {{ $rest_subscription->package->validity }} {{ translate('messages.days') }}

( @if ($rest_subscription->max_order > 0) {{ $rest_subscription->max_order }} @else 0 @endif {{ translate('left') }}) @endif
pos == 1 ? 'checked' : '' }} class="form-check-input">
mobile_app == 1 ? 'checked' : '' }}>
self_delivery == 1 ? 'checked' : '' }}>
@php($total_food= $restaurant->foods()->withoutGlobalScope(\App\Scopes\RestaurantScope::class)->count() ?? 0 ) ( @if ($rest_subscription->max_product - $total_food > 0) {{ $rest_subscription->max_product - $total_food}} @else 0 @endif {{ translate('left') }}) @endif
chat == 1 ? 'checked' : '' }}>
review == 1 ? 'checked' : '' }}>
@if ($rest_subscription->status == 1)
@csrf @method('delete')
@endif @if (\App\CentralLogics\Helpers::subscription_check()) @endif
@else
public
{{translate('No_subscription_plan_available')}}
@endif
@endsection @push('script_2') @endpush