@php $template = $configuration->template() @endphp

{{__('Template')}}

{!! Form::open(['url' => route('admin.settings.notification.update-template'), 'class' => 'form form-horizontal', 'method' => 'POST']) !!}
{!! Form::hidden('name', $template->name) !!}
{!! Form::label('subject', 'Subject', ['class' => 'col-md-3']) !!}
{!! Form::text('subject', $template->subject, ['class' => 'form-control']) !!}
@if($template->hasMailChannel())

{{__('EMAIL')}}

{!! Form::label('intro_line', 'Intro Line') !!}
@if($action = $template->action())
{!! Form::label('action', 'Action Button') !!}
{!! Form::text('action[url]', $action['url'], ['class' => 'form-control', 'placeholder' => 'Button Link']) !!}
{!! Form::text('action[text]', $action['text'], ['class' => 'form-control', 'placeholder' => 'Button Text']) !!}
@endif
{!! Form::label('outro_line', 'Outro Line') !!}
@endif @if($template->hasDatabaseChannel() || $template->hasSmsChannel())

{{__('NOTIFICATION/SMS')}}

{!! Form::label('message', 'Message') !!} {!! Form::textarea('message', $template->message, ['class' => 'form-control', 'rows' => 3]) !!}
@endif
{!! Form::close() !!}