{{ Form::label('user_full_name', __('messages.hospitals_list.hospital_name').(':'), ['class' => 'form-label']) }}
{{ $subscription->user->full_name }}
{{ Form::label('subscription_plan_name', __('messages.subscription_plans.plan_name').(':'), ['class' => 'form-label']) }}
{{ $subscription->subscriptionPlan->name }}   @if($subscription->status == \App\Models\Subscription::ACTIVE) {{ __('messages.common.active') }} @else {{ __('messages.common.de_active') }} @endif
{{ Form::label('payment_status', __('messages.subscription_plans.frequency').(':'), ['class' => 'form-label']) }}

@if($subscription->plan_frequency == 1) {{ \App\Models\Subscription::MONTH }} @elseif($subscription->plan_frequency == 2) {{ \App\Models\Subscription::YEAR }} @else {{ __('messages.common.n/a') }} @endif

{{ Form::label('status', __('messages.common.status').(':'), ['class' => 'form-label']) }}
@if($subscription->status == \App\Models\Subscription::ACTIVE) {{ __('messages.common.active') }} @else {{ __('messages.common.de_active') }} @endif
{{ Form::label('starts_at', __('messages.subscription_plans.start_date').(':'), ['class' => 'form-label']) }}
{{ date('g:i A jS M, Y', strtotime($subscription->starts_at)) }}
@if(!empty($subscription->transactions->payment_type) && $subscription->transactions->payment_type == \App\Models\Transaction::TYPE_CASH) @if($subscription->transactions->status == 0 && ($subscription->transactions->is_manual_payment == 0 || $subscription->transactions->is_manual_payment == 2)) {{ Form::label('ends_at', __('messages.subscription_plans.end_date').(':'), ['class' => 'form-label']) }}
{{ date('g:i A jS M, Y', strtotime($subscription->ends_at)) }} @else
{{ Form::label('ends_at', __('messages.subscription_plans.end_date').(':'), ['class' => 'form-label']) }} {{ Form::text('ends_at', null, ['class' => 'form-control bg-white', 'id' => 'subscriptionEndsAt']) }}
@endif @else
{{ Form::label('ends_at', __('messages.subscription_plans.end_date').(':'), ['class' => 'form-label']) }} {{ Form::text('ends_at', null, ['class' => 'form-control bg-white', 'id' => 'subscriptionEndsAt']) }}
@endif
{{ Form::label('sms_limit', __('messages.new_change.sms_limit'), ['class' => 'form-label']) }} {{ Form::text('sms_limit', null, ['class' => 'form-control bg-white', 'id' => 'smsLimit','onkeyup' => 'if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,"")']) }}
{!! Form::submit(__('messages.common.save'), ['class' => 'btn btn-primary me-2','id' => 'subscriptionBtnSave']) !!} {!! __('messages.common.cancel') !!}