@php use App\Enums\SettingTypeEnum;use Carbon\Carbon; @endphp @extends('layouts.admin.app', ['page' => $menuAdmin['subscriptions']['active'] ?? "", 'sub_page' => $menuAdmin['subscriptions']['route']['plans']['sub_active'] ?? null]) @section('title', __('labels.subscription_plans')) @section('header_data') @php $page_title = __('labels.subscription_plans'); $page_pretitle = __('labels.list'); @endphp @endsection @php $breadcrumbs = [ ['title' => __('labels.home'), 'url' => route('admin.dashboard')], ['title' => __('labels.subscription_plans'), 'url' => null], ]; @endphp @section('admin-content')
@if(!$subscriptionEnabled) @include('components.subscription-feature', ['settings' => $subscriptionSettings]) @else

{{ __('labels.subscription_settings') }}

@php // Use dynamic paths so this works across environments $schedulePath = storage_path('logs/schedule.txt'); $scheduleExists = file_exists($schedulePath); $scheduleMTime = $scheduleExists ? @filemtime($schedulePath) : null; @endphp
{{ __('messages.subscription_expiry_scheduler_instruction') }}
                                                * * * * * /usr/bin/php {{ base_path('artisan') }} schedule:run >> {{ $schedulePath }} 2>&1
                                            
{{ __('messages.php_path_note') }}
@if($scheduleExists) @else @endif
@csrf
@if($editPermission) @endif

{{ __('labels.subscription_plans') }}

@if($subscriberViewPermission) @endif @if($createPermission) @endif

{{ __('labels.preview') }}

@include('components.subscription-pricing', ['subscriptionSettings' => $subscriptionSettings])
@endif
@endsection