@if(isset($id)) {!! html()->modelForm($data, 'PATCH', route('ordermail.update', $id))->open() !!} @else {!! html()->form('POST', route('ordermail.store'))->open() !!} @endif {!! html()->hidden('type', $ordersType) !!}
{{ $pageTitle ?? __('message.list') }}
{!! html()->label(__('message.subject'))->for('subject')->class('form-control-label') !!} {!! html()->text('subject', old('subject', $data->subject ?? null))->placeholder(__('message.subject'))->class('form-control')->required() !!}
{!! html()->label(__('message.description'))->for('mail_description')->class('form-control-label') !!} {!! html()->textarea('mail_description', old('mail_description', $data->mail_description ?? null))->class('form-control tinymce-mail_description')->placeholder(__('message.description')) !!}
{!! html()->button(__('message.save'))->type('submit')->class('btn btn-md btn-primary float-right') !!} {!! html()->form()->close() !!}
@section('bottom_script') @endsection