@extends('layouts.app') @section('title', 'Renew Subscription') @section('content') {{-- Error message --}} @if(session('error'))
{{ session('error') }}
@endif {{-- Validation errors --}} @if($errors->any())
Please correct the following:
@endif
{{-- ========================================================= TEMPLE DETAILS ========================================================== --}}

Registered Temple Details

{{ $daysExpired ?? 0 }} days expired
{{-- Temple Name --}}
Temple Name {{ $temple->temple_name }}
{{-- Registration Number --}}
Registration Number {{ $temple->registration_number ?? 'N/A' }}
{{-- Location --}}
Location {{ $temple->location ?? 'N/A' }}
{{-- District --}}
District {{ $temple->district ?? 'N/A' }}
{{-- Contact --}}
Contact Number {{ $temple->contact_number ?? 'N/A' }}
{{-- Email --}}
Email {{ $temple->email ?? 'N/A' }}
{{-- Current Status --}}
Current Status {{ ucfirst($temple->status) }}
{{-- Renewal Status --}}
Renewal Status @if($temple->renew_status === 'renewed') Renewed @else Pending @endif
{{-- Current Expiry --}}
Current Expiry Date {{ \Carbon\Carbon::parse($temple->expiry_date)->format('d M Y') }}
{{-- Days Expired --}} @php $expiry = \Carbon\Carbon::parse($temple->expiry_date); $today = \Carbon\Carbon::today(); $daysExpired = $expiry->diffInDays($today); $oneMonthCompleted = $expiry->lte($today->copy()->subMonth()); @endphp
Subscription Status @if($oneMonthCompleted) One Month Completed @else Pending @endif
Days Expired {{ $daysExpired }} days
{{-- Notification --}}
One Month Notification @if($temple->one_month_notification_sent_at) Sent on {{ \Carbon\Carbon::parse($temple->one_month_notification_sent_at)->format('d M Y') }} @else Not Sent @endif
{{-- ========================================================= RENEWAL FORM ========================================================== --}}
@csrf

Renewal Details

{{-- Renewal Date --}}
@error('renewal_date') {{ $message }} @enderror
{{-- Duration --}}
@error('renewal_duration') {{ $message }} @enderror
{{-- Form Actions --}}
Cancel
@endsection @push('styles') @endpush