{{-- resources/views/packages/show.blade.php --}} @extends('layouts.app') @section('content')
{{ $package->description }}
৳{{ number_format($package->price, 2) }}
@if($package->billing_cycle_count == 1) {{ ucfirst($package->billing_cycle_unit) }}ly @else Every {{ $package->billing_cycle_count }} {{ $package->billing_cycle_unit }}s @endif
{{ $package->total_days }} days total
৳{{ number_format($package->per_day_rate, 2) }}
{{ $package->subscriptions->count() }}
Active Subscriptions
{{ $package->subscriptions->where('status', 'active')->count() }}
Monthly Revenue
৳{{ number_format($package->subscriptions->where('status', 'active')->count() * $package->price, 2) }}
Created
{{ $package->created_at->format('d M Y, h:i A') }}
Last Updated
{{ $package->updated_at->format('d M Y, h:i A') }}
| Subscriber | Start Date | End Date | Status |
|---|---|---|---|
| {{ $subscription->subscriber->name }} | {{ $subscription->start_date->format('d M Y') }} | {{ $subscription->end_date->format('d M Y') }} | {{ ucfirst($subscription->status) }} |