@extends('admin.layouts.app')
@section('title', $subscription->name)
@section('content')
<div class="page-header d-print-none">
    <div class="container-xl">
        <div class="row g-2 align-items-center">
            <div class="col-auto"><a href="{{ route('admin.subscriptions.index') }}" class="btn btn-outline-secondary btn-sm">← Back</a></div>
            <div class="col"><h2 class="page-title">{{ $subscription->name }}</h2></div>
            <div class="col-auto d-flex gap-2">
                <a href="{{ route('admin.subscriptions.edit', $subscription) }}" class="btn btn-primary btn-sm">Edit</a>
            </div>
        </div>
    </div>
</div>
<div class="page-body">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <div class="card">
                <div class="card-body">
                    <div class="h2 text-primary mb-1">₹{{ number_format($subscription->price, 2) }}</div>
                    <div class="text-muted mb-3">{{ $subscription->duration_days }} days</div>
                    @if($subscription->description)<p>{{ $subscription->description }}</p>@endif
                    @if($subscription->benefits)
                    <ul class="list-unstyled">
                        @foreach($subscription->benefits as $b)
                        <li class="d-flex align-items-center gap-2 mb-2"><span class="text-success">✓</span> {{ $b }}</li>
                        @endforeach
                    </ul>
                    @endif
                    <hr>
                    <div class="d-flex justify-content-between"><span class="text-muted">Status</span><span class="badge bg-{{ $subscription->is_active?'success':'secondary' }}-lt">{{ $subscription->is_active?'Active':'Inactive' }}</span></div>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
