@extends('layouts.master') @section('title') {{ __('package') }} @endsection @section('content')

{{ __('edit') . ' ' . __('package') }}


{!! Form::model($package, [ 'route' => ['package.update', $package->id], 'method' => 'post', 'class' => 'edit-form', 'novalidate' => 'novalidate', 'data-success-function' => 'formSuccessFunction' ]) !!}
{!! Form::text('name', null, [ 'required', 'class' => 'form-control', 'placeholder' => __('package') . ' ' . __('name'), ]) !!}
{!! Form::textarea('description', null, [ 'class' => 'form-control', 'placeholder' => __('description'), 'rows' => '3', ]) !!}
{!! Form::text('tagline', null, ['class' => 'form-control', 'placeholder' => __('tagline')]) !!}
* {!! Form::number('days', null, [ 'required', 'class' => 'form-control days', 'min' => 1, 'placeholder' => __('days'), ]) !!}
{{--
* {!! Form::number('student_charge', null, [ 'required', 'class' => 'form-control student-input', 'min' => 0, 'placeholder' => __('per_active_student_charges'), ]) !!}
* {!! Form::number('staff_charge', null, [ 'required', 'class' => 'form-control staff-input', 'min' => 0, 'placeholder' => __('per_active_staff_charges'), ]) !!}
--}} {{-- Postpaid --}}
* {!! Form::number('student_charge', null, [ 'required', 'class' => 'form-control student-input', 'min' => 0, 'placeholder' => __('per_active_student_charges'), ]) !!}
* {!! Form::number('staff_charge', null, [ 'required', 'class' => 'form-control staff-input', 'min' => 0, 'placeholder' => __('per_active_staff_charges'), ]) !!}
{{-- Prepaid --}}
* {!! Form::number('no_of_students', null, [ 'required', 'class' => 'form-control', 'min' => 1, 'placeholder' => __('no_of_students'), ]) !!}
* {!! Form::number('no_of_staffs', null, [ 'required', 'class' => 'form-control', 'min' => 1, 'placeholder' => __('no_of_staffs'), ]) !!}

{{ __('Immediate Features Access') }}


  • {{ __('Checked') }} {{ __('Features changes will be available to existing subscribers in their current billing cycle') }}
  • {{ __('Unchecked') }} {{ __('Features changes will only be available to subscribers starting in their next billing cycle') }}
{{ __('note: Only features are effected') }}

{{-- Feature --}}

{{ __('features') }}

@foreach ($features as $feature)
{{-- Default Feature --}} @if ($feature->is_default == 1) package_feature->pluck('feature_id'), $feature->id)) checked @endif value="{{ $feature->id }}" /> @else id, $package->package_feature->pluck('feature_id')->toArray())) checked @endif value="{{ $feature->id }}" /> @endif
@endforeach

{!! Form::close() !!}
@endsection @section('script') @endsection