@extends('layouts.app') @php $title = isset($purchaseSubscription) ? 'Edit Vendor Purchase Subscription' : 'Create Vendor Purchase Subscription'; @endphp @section('title', $title) @section('content')

Subscription Management

{{ $title }}

@csrf
@foreach($subscriptions as $index => $subscription)
{{ $subscription->plan_name }}
subscription_id ? 'checked' : '' }} {{ isset($purchaseSubscription) && $purchaseSubscription->subscription_id == $subscription->subscription_id ? 'checked' : '' }} {{ !old('subscription_id') && !isset($purchaseSubscription) && $index === 0 ? 'checked' : '' }} {{ $currentSubscription != null && $subscription->subscription_id == $currentSubscription->subscription_id ? 'checked' : '' }}>

Price: {{ $subscription->price }} QAR

Duration: {{ $subscription->duration }} Days

Description: {!! $subscription->description !!}
@endforeach
@endsection @section('scripts') @endsection