@extends('layouts.app') @section('title', __('superadmin::lang.superadmin') . ' | ' . __('superadmin::lang.packages')) @section('content')

@lang('superadmin::lang.packages') @lang('superadmin::lang.edit_package')

{!! Form::open(['route' => ['packages.update', $packages->id], 'method' => 'put', 'id' => 'edit_package_form']) !!}
{!! Form::label('name', __('messages.name').':') !!} {!! Form::text('name',$packages->name, ['class' => 'form-control', 'required']); !!}
{!! Form::label('description', __('superadmin::lang.description').':') !!} {!! Form::text('description', $packages->description, ['class' => 'form-control', 'required']); !!}
{!! Form::label('location_count', __('superadmin::lang.location_count').':') !!} {!! Form::number('location_count', $packages->location_count, ['class' => 'form-control', 'required', 'min' => 0]); !!} @lang('superadmin::lang.infinite_help')
{!! Form::label('user_count', __('superadmin::lang.user_count').':') !!} {!! Form::number('user_count', $packages->user_count, ['class' => 'form-control', 'required', 'min' => 0]); !!} @lang('superadmin::lang.infinite_help')
{!! Form::label('product_count', __('superadmin::lang.product_count').':') !!} {!! Form::number('product_count', $packages->product_count, ['class' => 'form-control', 'required', 'min' => 0]); !!} @lang('superadmin::lang.infinite_help')
{!! Form::label('invoice_count', __('superadmin::lang.invoice_count').':') !!} {!! Form::number('invoice_count', $packages->invoice_count, ['class' => 'form-control', 'required', 'min' => 0]); !!} @lang('superadmin::lang.infinite_help')
{!! Form::label('interval', __('superadmin::lang.interval').':') !!} {!! Form::select('interval', $intervals, $packages->interval, ['class' => 'form-control select2', 'placeholder' => __('messages.please_select'), 'required']); !!}
{!! Form::label('interval_count ', __('superadmin::lang.interval_count').':') !!} {!! Form::number('interval_count', $packages->interval_count, ['class' => 'form-control', 'required']); !!}
{!! Form::label('trial_days ', __('superadmin::lang.trial_days').':') !!} {!! Form::number('trial_days', $packages->trial_days, ['class' => 'form-control', 'required', 'min' => 0]); !!}
{!! Form::label('price', __('superadmin::lang.price').':') !!} {!! Form::text('price', $packages->price, ['class' => 'form-control input_number', 'required']); !!}
{!! Form::label('sort_order ', __('superadmin::lang.sort_order').':') !!} {!! Form::number('sort_order', $packages->sort_order, ['class' => 'form-control', 'required']); !!}
@foreach($permissions as $module => $module_permissions) @foreach($module_permissions as $permission) @php $value = isset($packages->custom_permissions[$permission['name']]) ? $packages->custom_permissions[$permission['name']] : false; @endphp
@endforeach @endforeach
@show_tooltip(__('superadmin::lang.update_existing_subscriptions_tooltip'))
{!! Form::close() !!}
@endsection @section('javascript') @endsection