@extends('layouts/contentNavbarLayout') @section('title', 'Subscription Create') @section('content')

Home / Subscription Create

@isset($subscription) {!! Form::model($subscription, ['route' => ['subscription-plans.update', Crypt::encrypt($subscription->id)], 'method' => 'put', 'class' => 'p-4 progress-form', 'id' => 'progress-form', 'files' => true]) !!} @else {!! Form::open(['url' => '/subscription-plans', 'class' => 'p-4 progress-form', 'id' => 'progress-form', 'lang' => 'en', 'files' => true]) !!} @endisset
Plan Details
{!! Form::label('name', 'Plan Name', ['class' => 'form-label']) !!} {!! Form::text('name', @$subscription->name, ['class' => 'form-control', 'placeholder' => 'Plan name', 'id' => 'plan_name']) !!}
{!! Form::label('plan_id', 'Plan ID', ['class' => 'form-label']) !!} {!! Form::text('plan_id', @$plan_id, ['class' => 'form-control', 'placeholder' => 'Plan Id', 'id' => 'plan_id', 'readonly']) !!}
{!! Form::label('description', 'Description', ['class' => 'form-label']) !!} {!! Form::textarea('description', @$subscription->description, ['class' => 'form-control', 'id' => 'plan_description']) !!}
Pricing Information
{!! Form::label('price', 'Price', ['class' => 'form-label']) !!} {!! Form::number('price', @$subscription->price, ['class' => 'form-control', 'id' => 'price', 'placeholder' => '99.99', 'step' => '.01']) !!}
{!! Form::label('duration', 'Duration', ['class' => 'form-label']) !!} {!! Form::select('duration', ['' => 'Select duration', 'month' => 'Monthly','year' => 'Annually'], @$subscription->duration, ['class' => 'form-select form-select-lg', 'id' => 'duration']) !!}
Plan Features
{!! Form::label('spots', 'Included Spots Count', ['class' => 'form-label']) !!} {!! Form::select('spots', [1 => '1 Parking spot', 2 => '2 Parking spot', 3 => '3 Parking spot', 4 => '4 Parking spot', 5 => '5 Parking spot', 6 => '6 Parking spot', 7 => '7 Parking spot', 8 => '8 Parking spot', 9 => '9 Parking spot', 10 => '10 Parking spot', ], @$subscription->spots, ['id' => 'largeSelect', 'class' => 'form-select form-select-lg']) !!}
{{--
{!! Form::label('guest_parking_privileges', 'Guest Parking Privileges', ['class' => 'form-check-label']) !!} {!! Form::checkbox('guest_parking_privileges', 1, @$user->guest_parking_privileges, ['class' => 'form-check-input', 'id' => 'guest_parking_privileges']) !!}
--}}
Plan Availability
{!! Form::label('status', 'Active Subscription', ['class' => 'form-check-label']) !!} {!! Form::checkbox('status', 1, @$user->status, ['class' => 'form-check-input', 'id' => 'status']) !!}
{!! Form::button('Submit', ['type' => 'submit', 'class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@endsection