{!! Form::open(['url' => $notification_template['template_for'] == 'send_ledger' ? action([\App\Http\Controllers\ContactController::class, 'sendLedger']) : action([\App\Http\Controllers\NotificationController::class, 'send']), 'method' => 'post', 'id' => 'send_notification_form' ]) !!}

@lang( 'lang_v1.send_notification' ) - {{$template_name}}

@lang('lang_v1.available_tags'): @include('notification_template.partials.tags', ['tags' => $tags])
{{-- email --}}

@lang('lang_v1.send_email')

@if($notification_template['template_for'] == 'send_ledger')
{!! Form::label('ledger_format', __('lang_v1.ledger_format').':') !!} {!! Form::select('ledger_format', ['format_1' => __('lang_v1.format_1'), 'format_2' => __('lang_v1.format_2')], $ledger_format, ['class' => 'form-control']); !!}
@endif
{!! Form::label('to_email', __('lang_v1.to').':') !!} @show_tooltip(__('lang_v1.notification_email_tooltip')) {!! Form::text('to_email', $contact->email, ['class' => 'form-control' , 'placeholder' => __('lang_v1.to')]); !!}
{!! Form::label('subject', __('lang_v1.email_subject').':') !!} {!! Form::text('subject', $notification_template['subject'], ['class' => 'form-control' , 'placeholder' => __('lang_v1.email_subject')]); !!}
{!! Form::label('cc', 'CC:') !!} {!! Form::email('cc', $notification_template['cc'], ['class' => 'form-control' , 'placeholder' => 'CC']); !!}
{!! Form::label('bcc', 'BCC:') !!} {!! Form::email('bcc', $notification_template['bcc'], ['class' => 'form-control' , 'placeholder' => 'BCC']); !!}
{!! Form::label('email_body', __('lang_v1.email_body').':') !!} {!! Form::textarea('email_body', $notification_template['email_body'], ['class' => 'form-control', 'placeholder' => __('lang_v1.email_body'), 'rows' => 6]); !!}
@if(config('constants.enable_download_pdf') && $notification_template['template_for'] == 'new_sale') @endif @if($notification_template['template_for'] == 'send_ledger')

*@lang('lang_v1.ledger_attacment_help')

@endif
{{-- sms /whatsapp--}} @if($notification_template['template_for'] != 'send_ledger')
@lang('lang_v1.send_sms_whatsapp_notification')
{!! Form::label('mobile_number', __('lang_v1.mobile_number').':') !!} {!! Form::text('mobile_number', $contact->mobile, ['class' => 'form-control', 'placeholder' => __('lang_v1.mobile_number')]); !!}
{!! Form::label('sms_body', __('lang_v1.sms_body').':') !!} {!! Form::textarea('sms_body', $notification_template['sms_body'], ['class' => 'form-control', 'placeholder' => __('lang_v1.sms_body'), 'rows' => 6]); !!}
{!! Form::label('whatsapp_text', __('lang_v1.whatsapp_text').':') !!} {!! Form::textarea('whatsapp_text', $notification_template['whatsapp_text'], ['class' => 'form-control', 'placeholder' => __('lang_v1.whatsapp_text'), 'rows' => 6]); !!}
@endif
@if(!empty($transaction)) {!! Form::hidden('transaction_id', $transaction->id); !!} @endif @if($notification_template['template_for'] == 'send_ledger') {!! Form::hidden('contact_id', $contact->id); !!} {!! Form::hidden('start_date', $start_date); !!} {!! Form::hidden('end_date', $end_date); !!} {!! Form::hidden('location_id', $location_id); !!} @endif {!! Form::hidden('template_for', $notification_template['template_for']); !!}
{!! Form::close() !!}