@extends('layouts.main') @section('title') {{ __('Packages') }} @endsection @section('page-title')

@yield('title')

@endsection @section('content')
@if (has_permissions('create', 'package'))
{!! Form::open(['route' => 'package.store', 'data-parsley-validate', 'class' => 'create-form', 'data-success-function'=> "formSuccessFunction"]) !!}
{{-- Package Name --}}
{{ Form::label('name', __('Package Name'), ['class' => 'form-label']) }} {{ Form::text('name', '', [ 'class' => 'form-control ', 'placeholder' => trans('Package Name'), 'data-parsley-required' => 'true', 'id' => 'name', ]) }}
{{-- Duration --}}
{{ Form::label('duration', __('Duration (In Days)'), ['class' => 'form-label']) }} {{ Form::number('duration', '', [ 'class' => 'form-control ', 'placeholder' => trans('Duration (In Days)'), 'data-parsley-required' => 'true', 'id' => 'duration', 'min' => '1', ]) }}
{{-- Package Type --}}
{{ Form::label('', __('Package Type'), ['class' => 'form-label col-12 ']) }} {{-- Paid --}} {{ Form::radio('package_type', 'paid', null, [ 'class' => 'form-check-input package-type', 'data-parsley-required' => 'true', 'id' => 'package-type-paid', 'checked' => true ]) }} {{ Form::label('package-type-paid', __('Paid'), ['class' => 'form-check-label']) }} {{-- Free --}} {{ Form::radio('package_type', 'free', null, [ 'class' => 'form-check-input package-type', 'data-parsley-required' => 'true', 'id' => 'package-type-free' ]) }} {{ Form::label('package-type-free', __('Free'), ['class' => 'form-check-label']) }}
{{-- Price --}}
{{ Form::label('price', __('Price') . '(' . $currency_symbol . ')', [ 'class' => 'form-label']) }} {{ Form::number('price', '', [ 'class' => 'form-control ', 'placeholder' => trans('Price'), 'id' => 'price', 'data-parsley-required' => 'true', 'min' => '0.01', 'step' => '0.01' ])}}
{{-- IOS Product ID --}}
{{ Form::label('ios-product-id', __('IOS Product ID'), ['class' => 'form-label']) }} {{ Form::text('ios_product_id', '', [ 'class' => 'form-control ', 'placeholder' => trans('IOS Product ID'), 'id' => 'ios-product-id', ]) }}

{{-- Feature Section --}}
{{-- Select Feature --}}
{{-- Type --}}
{{ Form::label('', __('Type'), ['class' => 'form-label col-12 ']) }} {{-- Unlimited --}} {{ Form::radio('type', 'unlimited', null, [ 'class' => 'form-check-input feature-type feature-type-unlimited', 'required' => true ]) }} {{ Form::label('', __('Unlimited'), ['class' => 'form-check-label feature-type-unlimited-label']) }} {{-- Limited --}} {{ Form::radio('type', 'limited', null, [ 'class' => 'form-check-input feature-type feature-type-limited', 'required' => true ]) }} {{ Form::label('', __('Limited'), ['class' => 'form-check-label feature-type-limited-label']) }}
{{-- Limited Value --}} {{-- Remove Option --}}

{{ Form::submit(trans('Add Package'), ['class' => 'center btn btn-primary']) }}
{!! Form::close() !!}
@endif
@if (has_permissions('update', 'package')) @else @endif
{{ __('ID') }} {{ __('IOS Product ID') }} {{ __('Name') }} {{ __('Duration (In Days)') }} {{ __('Package Type') }} {{ __('Price') }} {{ __('Features') }} {{ __('Enable/Disable') }} {{ __('Action') }} {{ __('Is Active ?') }}
@endsection @section('script') @endsection