@extends('layouts.core.backend', [ 'menu' => 'plan', ]) @section('title', $plan->name) @section('head') @endsection @section('page_header')

{{ $plan->name }}

@endsection @section('content') @include('admin.plans._menu', [ 'menu' => 'quota', ])
{{ csrf_field() }}

{{ trans('messages.plan.resources') }}

{{ trans('messages.plan.resource.intro') }}

@include('helpers.form_control.control', [ 'type' => 'number', 'name' => 'plan[options][email_max]', 'value' => $options['email_max'], 'label' => trans('messages.max_emails'), 'attributes' => [ 'default-value' => '10000', ], ])
@include('helpers.form_control.control', [ 'type' => 'checkbox', 'name' => 'unlimited', 'value' => '', 'label' => trans('messages.unlimited'), 'attributes' => [ 'checked' => $options['email_max'] == -1, ], ])
@include('helpers.form_control.control', [ 'type' => 'number', 'name' => 'plan[options][list_max]', 'value' => $options['list_max'], 'label' => trans('messages.max_lists'), 'attributes' => [ 'default-value' => '100', ], ])
@include('helpers.form_control.control', [ 'type' => 'checkbox', 'name' => 'unlimited', 'value' => '', 'label' => trans('messages.unlimited'), 'attributes' => [ 'checked' => $options['list_max'] == -1, ], ])
@include('helpers.form_control.control', [ 'type' => 'number', 'name' => 'plan[options][subscriber_max]', 'value' => $options['subscriber_max'], 'label' => trans('messages.max_subscribers'), 'attributes' => [ 'default-value' => '5000', ], ])
@include('helpers.form_control.control', [ 'type' => 'checkbox', 'name' => 'unlimited', 'value' => '', 'label' => trans('messages.unlimited'), 'attributes' => [ 'checked' => $options['subscriber_max'] == -1, ], ])
@include('helpers.form_control.control', [ 'type' => 'number', 'name' => 'plan[options][subscriber_per_list_max]', 'value' => $options['subscriber_per_list_max'], 'label' => trans('messages.max_subscribers_per_list'), 'attributes' => [ 'default-value' => '1000', ], ])
@include('helpers.form_control.control', [ 'type' => 'checkbox', 'name' => 'unlimited', 'value' => '', 'label' => trans('messages.unlimited'), 'attributes' => [ 'checked' => $options['subscriber_per_list_max'] == -1, ], ])
@include('helpers.form_control.control', [ 'type' => 'number', 'name' => 'plan[options][segment_per_list_max]', 'value' => $options['segment_per_list_max'], 'label' => trans('messages.segment_per_list_max'), 'attributes' => [ 'default-value' => '10', ], ])
@include('helpers.form_control.control', [ 'type' => 'checkbox', 'name' => 'unlimited', 'value' => '', 'label' => trans('messages.unlimited'), 'attributes' => [ 'checked' => $options['segment_per_list_max'] == -1, ], ])
@include('helpers.form_control.control', [ 'type' => 'number', 'name' => 'plan[options][campaign_max]', 'value' => $options['campaign_max'], 'label' => trans('messages.max_campaigns'), 'attributes' => [ 'default-value' => '500', ], ])
@include('helpers.form_control.control', [ 'type' => 'checkbox', 'name' => 'unlimited', 'value' => '', 'label' => trans('messages.unlimited'), 'attributes' => [ 'checked' => $options['campaign_max'] == -1, ], ])
@include('helpers.form_control.control', [ 'type' => 'number', 'name' => 'plan[options][automation_max]', 'value' => $options['automation_max'], 'label' => trans('messages.max_automations'), 'attributes' => [ 'default-value' => '200', ], ])
@include('helpers.form_control.control', [ 'type' => 'checkbox', 'name' => 'unlimited', 'value' => '', 'label' => trans('messages.unlimited'), 'attributes' => [ 'checked' => $options['automation_max'] == -1, ], ])
@include('helpers.form_control.control', [ 'type' => 'number', 'name' => 'plan[options][max_size_upload_total]', 'value' => $options['max_size_upload_total'], 'label' => trans('messages.max_size_upload_total'), 'attributes' => [ 'default-value' => '1000', ], ])
@include('helpers.form_control.control', [ 'type' => 'checkbox', 'name' => 'unlimited', 'value' => '', 'label' => trans('messages.unlimited'), 'attributes' => [ 'checked' => $options['max_size_upload_total'] == -1, ], ])
@include('helpers.form_control.control', [ 'type' => 'number', 'name' => 'plan[options][max_file_size_upload]', 'value' => $options['max_file_size_upload'], 'label' => trans('messages.max_file_size_upload'), 'attributes' => [ 'default-value' => '50', ], ])
@include('helpers.form_control.control', [ 'type' => 'checkbox', 'name' => 'unlimited', 'value' => '', 'label' => trans('messages.unlimited'), 'attributes' => [ 'checked' => $options['max_file_size_upload'] == -1, ], ])
@include('helpers.form_control', [ 'type' => 'checkbox2', 'class' => '', 'name' => 'plan[options][unsubscribe_url_required]', 'value' => $options['unsubscribe_url_required'], 'label' => trans('messages.unsubscribe_url_required'), 'options' => ['no','yes'], 'help_class' => 'plan', 'rules' => $plan->resourcesRules() ])
@include('helpers.form_control', ['type' => 'checkbox2', 'class' => '', 'name' => 'plan[options][access_when_offline]', 'value' => $options['access_when_offline'], 'label' => trans('messages.access_when_offline'), 'options' => ['no','yes'], 'help_class' => 'plan', 'rules' => $plan->resourcesRules() ])
@include('helpers.form_control', ['type' => 'checkbox2', 'class' => '', 'name' => 'plan[options][list_import]', 'value' => $options['list_import'], 'label' => trans('messages.can_import_list'), 'options' => ['no','yes'], 'help_class' => 'plan', 'rules' => $plan->resourcesRules() ])
@include('helpers.form_control', ['type' => 'checkbox2', 'class' => '', 'name' => 'plan[options][list_export]', 'value' => $options['list_export'], 'label' => trans('messages.can_export_list'), 'options' => ['no','yes'], 'help_class' => 'plan', 'rules' => $plan->resourcesRules() ])
@include('helpers.form_control', ['type' => 'checkbox2', 'class' => '', 'name' => 'plan[options][api_access]', 'value' => $options['api_access'], 'label' => trans('messages.can_use_api'), 'options' => ['no','yes'], 'help_class' => 'plan', 'rules' => $plan->resourcesRules() ])
{{ trans('messages.cancel') }}
@endsection