@extends('layouts/contentLayoutMaster') @if(isset($template)) @section('title', __('locale.templates.update_template')) @else @section('title', __('locale.templates.add_template')) @endif @section('vendor-style') @endsection @section('content') @if(isset($template)) {{ __('locale.templates.update_template') }} @else {{ __('locale.templates.add_template') }} @endif @if(config('app.trai_dlt')) {!! __('locale.templates.dlt_description') !!} @endif @if(isset($template)) {{ method_field('PUT') }} @endif @csrf {{ __('locale.labels.name') }} @error('name') {{ $message }} @enderror {{__('locale.labels.select_customer')}} @foreach($customers as $customer) user_id) && $template->user_id == $customer->id ? 'selected': null }}> {{$customer->displayName()}} @endforeach @error('user_id') {{ $message }} @enderror {{__('locale.labels.available_tag')}} {{ __('locale.labels.phone') }} {{ __('locale.labels.first_name') }} {{ __('locale.labels.last_name') }} {{ __('locale.labels.email') }} {{ __('locale.labels.username') }} {{ __('locale.labels.company') }} {{ __('locale.labels.address') }} {{__('locale.labels.message')}} {{ old('message', $template->message ?? null) }} 160 {{ __('locale.labels.characters_remaining') }} 1 {{ __('locale.labels.message') }} (s) @error('message') {{ $message }} @enderror @if(config('app.trai_dlt')) dlt_template_id)) checked @endif> {{__('locale.labels.dlt')}} {{__('locale.labels.trai_dlt')}} {{ __('locale.templates.dlt_template_id') }} @error('dlt_template_id') {{ $message }} @enderror {{__('locale.labels.category')}} dlt_category) && $template->dlt_category =='promotional') selected @endif>{{ __('locale.labels.promotional') }} dlt_category) && $template->dlt_category =='transactional') selected @endif>{{ __('locale.labels.transactional') }} dlt_category) && $template->dlt_category =='service_explicit') selected @endif>{{ __('locale.labels.service_explicit') }} dlt_category) && $template->dlt_category =='service_implicit') selected @endif>{{ __('locale.labels.service_implicit') }} @error('dlt_category') {{ $message }} @enderror {{__('locale.labels.sender_id')}} @foreach($sender_ids as $sender_id) sender_id) && $template->sender_id == $sender_id->id ? 'selected': null }}> {{$sender_id->sender_id}} @endforeach @error('sender_id') {{ $message }} @enderror @if(isset($template)) {{__('locale.labels.approve')}} approved == 'in_review') selected @endif>{{ __('locale.labels.in_review') }} approved == 'approved') selected @endif>{{ __('locale.labels.yes') }} approved == 'block') selected @endif>{{ __('locale.labels.no') }} @error('approved') {{ $message }} @enderror @endif @endif {{ __('locale.buttons.save') }} {{ __('locale.buttons.reset') }} @endsection @section('vendor-script') @endsection @section('page-script') @endsection
{!! __('locale.templates.dlt_description') !!}
{{ $message }}
{{__('locale.labels.trai_dlt')}}