@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' => 'sending_server', ])
{{ csrf_field() }}
person_outline

{{ trans('messages.plan_option.own_sending_server') }}

{{ trans('messages.plan_option.own_sending_server.intro') }}

{{ trans('messages.plan.sending_servers.own.setting') }}

{{ trans('messages.plan.sending_servers.own.setting.intro') }}

@include('helpers.form_control.control', [ 'type' => 'text', 'name' => 'plan[options][sending_servers_max]', 'value' => $plan->getOption('sending_servers_max'), 'label' => trans('messages.max_sending_servers'), 'help_class' => 'plan', 'attributes' => [ 'default-value' => '10', ], ])
@include('helpers.form_control.control', [ 'type' => 'checkbox', 'name' => 'unlimited', 'value' => '', 'label' => trans('messages.unlimited'), 'attributes' => [ 'checked' => $plan->getOption('sending_servers_max') == -1, ], ])

@include('helpers.form_control', ['type' => 'checkbox2', 'class' => '', 'name' => 'plan[options][all_sending_server_types]', 'value' => $plan->getOption('all_sending_server_types'), 'label' => trans('messages.allow_adding_all_sending_server_types'), 'options' => ['no','yes'], 'help_class' => 'plan', 'rules' => $plan->validationRules()['options'], ])


@foreach (Acelle\Model\SendingServer::types() as $key => $type)
@include('helpers.form_control', ['type' => 'checkbox', 'class' => '', 'name' => 'plan[options][sending_server_types][' . $key . ']', 'value' => isset($plan->getOption('sending_server_types')[$key]) ? $plan->getOption('sending_server_types')[$key] : 'no', 'label' => '', 'options' => ['no','yes'], 'help_class' => 'plan', 'rules' => $plan->validationRules()['options'], ])   {{ trans('messages.sending_server.type.' . $key) }}
@endforeach

@endsection