@extends('admin.framework') @section('title') Edit Subscription @endsection @section('head') @endsection @section('back_content')

Subscriptions

New Subscription

Modify subscription

{!! Form::open(array('route' => ['subscriptions.update', $subscription->id], 'method' => 'PUT', 'role' => 'form', 'class' => 'needs-validation', 'enctype'=>'multipart/form-data')) !!} {!! csrf_field() !!}
{!! Form::label('type', 'Subscription Type *', array('class' => '')); !!}
@if ($errors->has('type')) {{ $errors->first('type') }} @endif
{!! Form::label('plan_fee', 'Plan Fee *', array('class' => '')); !!}
{!! Form::text('plan_fee', $subscription->plan_fee, array('id' => 'plan_fee', 'class' => 'form-control','pattern'=>'^\d{1,3}*(\.\d+)?$', 'data-type'=>'currency', 'placeholder' => 'e.g. 20.00', 'required')) !!}
@if ($errors->has('plan_fee')) {{ $errors->first('plan_fee') }} @endif
{!! Form::label('client_id', 'Client *', array('class' => '')); !!}
@if ($errors->has('client_id')) {{ $errors->first('client_id') }} @endif
{!! Form::label('month', 'Month *', array('class' => '')); !!}
{!! Form::text('month', $subscription->month, array('id' => 'month', 'class' => 'form-control','data-provide'=>"datepicker", 'data-date-format'=>"MM yyyy", 'data-date-min-view-mode'=>"1", 'placeholder' => 'e.g. Jan 2021', 'required')) !!}
@if ($errors->has('month')) {{ $errors->first('month') }} @endif
{!! Form::label('expiry', 'Expiry *', array('class' => '')); !!}
{!! Form::text('expiry', $subscription->expiry, array('id' => 'expiry', 'class' => 'form-control','data-provide'=>"datepicker", 'data-date-format'=>"mm/dd/yyyy", 'placeholder' => 'e.g. Jan 2021', 'required')) !!}
@if ($errors->has('expiry')) {{ $errors->first('expiry') }} @endif
{!! Form::label('plan_id', 'Plan Package', array('class' => '')); !!}
@if ($errors->has('plan_id')) {{ $errors->first('plan_id') }} @endif

{!! Form::button('Update Subscription', array('class' => 'btn btn-primary','type' => 'submit' )) !!} {!! Form::close() !!}
@endsection @section('back_footer') @endsection