@extends('partials.box') @section($content_id) {!! Form::model('SMS', ['route' => ['sms-sendout.store'], 'class' => 'form-horizontal', 'data-element' => 'sendout-form']) !!} {!! Form::input('hidden', 'parts', 0) !!}
{!! Form::text('name', old('name'), ['class' => 'form-control', 'data-element' => 'sendout_name']) !!} {!! $errors->first('name', ':message') !!}
{!! Form::label('start_time', Lang::get('sendout.form.start_time'), ['class' => 'col-md-3 control-label']) !!}
{!! Form::input('message', 'start_time', (old('sort_order'))?old('start_time'):date('Y-m-d H:i:00'), ['class' => 'form-control', 'id' => 'start-time']) !!}
{!! $errors->first('start_time', ':message') !!}
{{--
{!! Form::label('disable_reply', Lang::get('sms.disable_reply'), ['class' => 'col-md-3 control-label']) !!}
{!! Form::checkbox('disable_reply', 1, false, ['class' => 'form-control']) !!} {!! $errors->first('disable_reply', ':message') !!}
{!! Form::label('disable_reply', Lang::get('sms.disable_reply_desc'), ['class' => 'col-md-6 control-label', 'style' => 'font-size:0.9em;']) !!}
--}}
{!! Form::label('message', Lang::get('sms.text'), ['class' => 'col-md-3 control-label']) !!}
{!! Form::textarea('message', null, ['class' => 'form-control', 'id' => 'message', 'oninput' => 'smsCount()', 'required']) !!} {!! $errors->first('message', ':message') !!}

Antal tecken:
Antal SMS:
Pris (ca):


@if(SystemSetting::read()['allow_send'] == 0) {{-- Server is not allowed to send --}} {{ Lang::get('sendout.form.allow_send') }} {!! Form::submit(Lang::get('sendout.form.save'), ['class' => 'btn btn-primary', 'disabled' => false, 'data-element' => 'sendout_store']) !!} @elseif(Auth::user()->company->isActive()) {{-- Allow send --}} {!! Form::submit(Lang::get('sendout.form.save'), ['class' => 'btn btn-primary', 'data-element' => 'sendout_store']) !!} @else {{-- Account is not allowed to send --}} {{ Lang::get('sms.missingPackage') }} {!! Form::submit(Lang::get('sendout.form.save'), ['class' => 'btn btn-primary', 'disabled' => false, 'data-element' => 'sendout_store']) !!} @endif

{{ Lang::get('sendout.pickReceiverLists') }}

@if(!Auth::user()->company->receiverLists->isEmpty()) @foreach (Auth::user()->company->receiverLists->sortBy('name') as $list)