{!! Form::open(['url' => $notification_template['template_for'] == 'send_ledger' ? action('ContactController@sendLedger') : action('NotificationController@send'), 'method' => 'post', 'id' => 'send_notification_form' ]) !!}
×
@lang( 'lang_v1.send_notification' ) - {{$template_name}}
@lang('lang_v1.available_tags'):
{{implode(', ', $tags)}}
{{-- email --}}
@lang('lang_v1.send_email')
{!! Form::checkbox('notification_type[]', 'email', true, ['class' => 'input-icheck notification_type']); !!} @lang('lang_v1.send_email')
{!! 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')
{!! Form::checkbox('attach_pdf', true, false, ['class' => 'input-icheck notification_type']); !!} @lang('lang_v1.attach_pdf_in_email')
@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::checkbox('notification_type[]', 'sms', false, ['class' => 'input-icheck notification_type']); !!} @lang('lang_v1.send_sms')
{!! Form::checkbox('notification_type[]', 'whatsapp', false, ['class' => 'input-icheck notification_type']); !!} @lang('lang_v1.send_whatsapp')
{!! 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); !!} @endif {!! Form::hidden('template_for', $notification_template['template_for']); !!} {!! Form::close() !!}