@extends('layouts.vendor.app') @section('title', translate('messages.my_subscription')) @push('css_or_js') @endpush @section('content')
@if (isset($rest_subscription) && $rest_subscription->status == 1 && $rest_subscription->expiry_date <= Carbon\Carbon::today()->addDays('7')) @endif @if (isset($rest_subscription) && $rest_subscription->status == 0 ) @endif @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()->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 (\App\CentralLogics\Helpers::subscription_check())
{{-- --}}
@endif
@else
public
{{translate('No_subscription_plan_available')}}
@endif
{{-- --}} @endsection @push('script_2') @endpush