{{-- resources/views/subscriptions/renew.blade.php --}} @extends('layouts.app') @section('content')

Renew Subscription

Back to Details
{{-- NOTICE BOX --}}

How Renewal Works: Your subscription will be renewed from its previous end date. No service gap will occur. The subscription will continue seamlessly.

{{-- Current Subscription Info --}}

Current Subscription

Package

{{ $subscription->package->name }}

Price

৳{{ number_format($subscription->package->price, 2) }}

Previous Period

{{ $subscription->start_date->format('d M Y') }} - {{ $subscription->end_date->format('d M Y') }}

Status

{{ ucfirst($subscription->status) }}
{{-- Renewal Form --}}

Renewal Options

@csrf {{-- New Period Preview --}}

After Renewal (Continuous Service)

@php $oldEndDate = $subscription->end_date; $newStartDate = $oldEndDate->copy(); $newEndDate = \Carbon\Carbon::parse($oldEndDate)->addMonths($subscription->package->billing_cycle_count); @endphp
Previous End Date: {{ $oldEndDate->format('d M Y') }}
New Start Date: {{ $newStartDate->format('d M Y') }}
New End Date: {{ $newEndDate->format('d M Y') }}
Total Duration: {{ $subscription->package->billing_cycle_count }} {{ $subscription->package->billing_cycle_unit }}(s)

No service gap - continues from previous end date

{{-- Payment Method --}}

Select Payment Method

{{-- Wallet Option --}}
{{-- New Payment Option --}}
{{-- Summary --}}
Renewal Amount: ৳{{ number_format($subscription->package->price, 2) }}
Cancel
@push('scripts') @endpush @endsection