@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'))
{{ translate('messages.attention') }}
{{ translate('messages.Your_Subcription_is_Ending_Soon._Please_Renew_Before') }}
{{ $rest_subscription->expiry_date->format('d M Y') }}
{{ translate('messages.Otherwise_All_Your_Activities_will_Turn_Off_Automatically_After_That.') }}
@endif
@if (isset($rest_subscription) && $rest_subscription->status == 0 )
{{ translate('messages.attention') }}
{{ translate('messages.Your_Subcription_has_expired_on') }}
{{ $rest_subscription->expiry_date->format('d M Y') }}
{{ translate('messages.All_Your_Activities_has_been_Turn_Off_Automatically_To_Continue_Your_Activities_Please_Select_a_Package.') }}
@endif
@if (isset($rest_subscription))
{{translate('Billing')}}
{{ 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
{{ translate('messages.Total_bill') }}
{{ \App\CentralLogics\Helpers::format_currency($total_bill) }}
{{ 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 (\App\CentralLogics\Helpers::subscription_check())
{{-- --}}
@endif
@else
{{translate('No_subscription_plan_available')}}
@endif