Viewing file: 4711db7b0dbda15b9f9dc16a8af4c7a6.php (17.01 KB) -rwxrwxrwx Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<div class="campaign_section" id="bulk_send_section"> <div class="card"> <div class="card-body"> <div class="form-group mt-3"> <label for=""><?php echo e(trans('customer.campaign_title')); ?></label> <input type="text" class="form-control" value="<?php echo e(old('title')??(isset($campaign)?$campaign->title:'')); ?>" required placeholder="Enter Campaign Title" name="title"> </div>
<div class="form-group pb-3"> <label class="mb-3 w-100" for=""><?php echo e(trans('customer.select_sending_type')); ?></label> <button type="button" class="btn btn-default from_type_btn active" data-type="sms"><?php echo e(trans('customer.sms')); ?></button> <button type="button" class="btn btn-default from_type_btn" data-type="mms"><?php echo e(trans('customer.mms')); ?></button> <button type="button" class="btn btn-default from_type_btn" data-type="whatsapp"><?php echo e(trans('customer.whatsapp_sms')); ?></button> <button type="button" class="btn btn-default from_type_btn" data-type="voicecall"><?php echo e(trans('customer.voice_sms')); ?></button> </div> <input type="hidden" class="from_selected_type" name="from_selected_type" value="sms">
<!--SMS !--> <div class="form-group from-section d-none" id="sms_section"> <div class="form-group" id="sender_type"> <label for=""><?php echo e(trans('customer.select_sender_type')); ?></label> <select name="type" class="form-control senderType"> <option value="number"><?php echo e(trans('customer.number')); ?></option> <option value="sender_id"><?php echo e(trans('customer.sender_id')); ?></option> </select> </div>
<div class="form-group d-none"> <label for=""><?php echo e(trans('Add Users To Campaign')); ?></label> <select name="staff_ids[]" multiple="multiple" class="form-control staffs" > <?php $__currentLoopData = $staffs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $staff): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($staff->id); ?>"><?php echo e($staff->email); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div>
<div class="form-group from-number-section pb-3" id="phone_number_section"> <label for=""><?php echo e(trans('customer.select_sender')); ?></label> <select name="from_number[]" id="campaignFromNumber" class="select2 compose-select" multiple="multiple" data-placeholder="<?php echo e(trans('customer.select_senders')); ?>:">
<?php if(isset($users_from_number)): ?> <optgroup label="From Numbers"> <?php $__currentLoopData = $users_from_number; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $number): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e(json_encode($number)); ?>"><?php echo e($number['number']); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </optgroup> <?php endif; ?>
<?php if(isset($users_from_groups)): ?> <optgroup label="From Groups"> <?php $__currentLoopData = $users_from_groups; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $group): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e(json_encode($group)); ?>"><?php echo e($group['number']); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </optgroup> <?php endif; ?> </select> </div> </div>
<div class="form-group send-using-raw-number"> <label class="d-block" for=""><?php echo e(trans('customer.send_using')); ?>
<span> <input type="radio" class="recipient_type ml-3" checked id="paste_t" name="recipient_type" value="paste_number"></span> <span class=""> <label for="paste_t"><?php echo e(trans('customer.type_number')); ?></label></span> <span><input type="radio" class="recipient_type ml-4" id="group_t" name="recipient_type" value="group"></span> <span> <label for="group_t"><?php echo e(trans('customer.group')); ?></label></span> <span><input type="radio" class="recipient_type ml-4" id="import_xls" name="recipient_type" value="import_xls"></span> <span> <label for="import_xls"><?php echo e(trans('customer.import_contacts')); ?></label></span> </label> </div>
<div class="form-group to-number-section recipient-section recipient_group" style="display: none" id="number_section"> <select name="groups[]" id="campaignToNumber" class="select2" data-value="" multiple="multiple" data-placeholder="<?php echo e(trans('customer.select_a_group')); ?>:"> <?php if(isset($groups)): ?> <?php $__currentLoopData = $groups; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $group): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option data-count="<?php echo e($group->contacts_count); ?>" value="<?php echo e($group->id); ?>"><?php echo e($group->name."(".$group->contacts_count.")"); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </select> <div class="text-right"> Time zone (<b class="sms-text"><?php echo e(config('app.timezone')); ?></b>) Total Contacts (<b class="sms-text" id="contectCount">0</b>) || Total Message (<b class="sms-text" id="amountCount_g">0</b>) </div> </div>
<div class="form-group to-number-section recipient-section recipient_import_xls" style="display: none" id="import_section"> <div class="row"> <div class="col"> <input type="file" name="import_xls" class="form-control p-2"> </div> <div class="col"> <button id="checkDuplicate" type="button" class="btn btn-sm btn-info"><?php echo e(trans('customer.check_duplicate')); ?> <img id="check_loader" src="<?php echo e(asset('images/loading-buffering.gif')); ?>" alt="" width="20px" class="ml-2 d-none"></button> </div> </div> <div class="row"> <div class="col"> <button id="downloadDuplicates" type="button" class="btn btn-primary btn-sm float-left mt-1"><?php echo e(trans('customer.duplicates_invalid')); ?> (<span id="duplicate_count"></span>)</button> </div> </div>
<div class="float-right"> <a target="_blank" href="<?php echo e(route('customer.download.sample',['type'=>'group'])); ?>" class="text-muted"> <?php echo app('translator')->get('customer.download_sample'); ?> </a> </div> </div>
<div class="form-group to-number-section recipient-section recipient_paste_number" id="paste_number_section"> <textarea name="paste_numbers" cols="6" rows="6" class="form-control" id="paste_number_field" placeholder="Enter Recipient Numbers....(Number Should Be Separate By New Line)"></textarea> <div class="text-right"> <button type="button" class="btn btn-primary btn-sm float-left download_btn mt-1"><?php echo e(trans('customer.duplicates_invalid')); ?> (<span class="show_duplicate_numbers"></span>)</button> Time zone (<b class="sms-text"><?php echo e(config('app.timezone')); ?></b>) Total Contacts (<b class="sms-text paste_contact_count">0</b>) || Total Message (<b class="sms-text" id="amountCount_p">0</b>) </div> </div>
<div class="form-group d-none" id="mms_section"> <label for=""><?php echo e(trans('customer.select_mms_file')); ?></label> <input type="file" class="form-control p-1" multiple name="message_files[]"> </div>
<div class="row d-none" id="voice_section"> <div class="col-md-6"> <label for=""><?php echo e(trans('customer.select_language')); ?></label> <select name="language" class="form-control select2-single" > <?php $__currentLoopData = voice_sms_lang(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $lang): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($lang); ?>"><?php echo e(strtoupper($lang)); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div>
<div class="col-md-6"> <label for=""><?php echo e(trans('customer.select_gender')); ?></label> <select name="voice_type" class="form-control"> <option value="men"><?php echo e(trans('customer.men')); ?></option> <option value="women"><?php echo e(trans('customer.women')); ?></option> </select> </div>
</div>
<input type="hidden" id="template_id" name="template_id"> <div class="form-group mt-4"> <label for="name"><?php echo app('translator')->get('customer.dlt_template'); ?></label> <select class="form-control " id="dlt-template"> <option value="" ><?php echo e(trans('customer.select_template')); ?></option> <?php if(isset($templates)): ?> <?php $__currentLoopData = $templates; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $template): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option data-template_id="<?php echo e(isset($template->id)?$template->id:''); ?>" data-title="<?php echo e(isset($template->message)?$template->message:''); ?>" data-sender_id="<?php echo e($template->sender->id); ?>" data-sender="<?php echo e($template->header_id); ?>" class="response_value" value="<?php echo e($template->message); ?>"><?php echo e($template->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </select> </div> <div class="form-group mt-3"> <label for="">Header ID</label> <input type="text" id="select_sender_id" class="form-control" placeholder="Header ID" required disabled> <input type="hidden" id="select_sender_number" name="from_number[]"> </div> <div class="form-group"> <label for="">Message Body</label> <textarea name="template_body" class="type_message form-control" autocomplete="off" type="text" placeholder="Type your message here..." cols="2" rows="2" id="message"></textarea> <div class="text-right sms-counter-section"> <b id="smsCount" class="text-primary"></b> SMS (<b id="smsLength" class="text-primary"></b>) Characters left </div> <div> <?php $__currentLoopData = sms_template_variables(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$t): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <button type="button" data-name="<?php echo e($key); ?>" class="btn btn-sm btn-primary sms_template_variable mt-2"> <?php echo e(ucfirst(str_replace('_',' ',$t))); ?>
</button> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div>
<input class="switch-input" name="check_schedule" type="hidden" id="switch-input">
<div class="row mt-3 d-none"> <div class="col-sm-8"> <div class="form-group"> <label for=""><?php echo e(trans('customer.phone_numbers')); ?></label> <textarea readonly="readonly" name="to_number" id="phone_numbers" cols="4" rows="12" class="form-control"><?php echo e(old('to_number')?old('to_number'):''); ?></textarea>
</div> </div> <div class="col-sm-4"> <div class="form-group"> <label for=""><?php echo e(trans('customer.groups')); ?></label> <div> <?php $__currentLoopData = $groups; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $group): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <button type="button" data-id="<?php echo e($group->id); ?>" class="btn btn-primary group btn-sm mt-2"><?php echo e($group->name."(".$group->contacts_count.")"); ?></button> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div>
</div> </div> </div> </div> </div> </div>
<input type="hidden" id="template_active_nav"> <input type="hidden" id="totalmessage">
<!-- Modal --> <div class="modal fade" id="scheduleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLongTitle"><?php echo e(trans('customer.Schedule_Date_Time')); ?></h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <div class="row"> <div class="form-group col-sm-6 col-6"> <label for=""><?php echo e(trans('customer.start_date')); ?></label> <input name="start_date" value="<?php echo e(old('start_date')??(isset($campaign)??$campaign->start_date)); ?>" type='text' class="form-control datetimepicker date_range"/> </div> <div class="form-group col-sm-6 col-6"> <label for=""><?php echo e(trans('customer.end_date')); ?></label> <input name="end_date" value="<?php echo e(old('end_date')??(isset($campaign)??$campaign->end_date)); ?>" type='text' class="form-control datetimepicker date_range"/> </div>
<div class="form-group col-sm-6 col-6 mt-2"> <label for="start_time"><?php echo e(trans('customer.start_time')); ?></label> <input id="start_time" name="start_time" value="<?php echo e(old('start_time')??(isset($campaign)?$campaign->start_time:'')); ?>" type='time' class="form-control "/> </div> <div class="form-group col-sm-6 col-6 mt-2"> <label for="end_time"><?php echo e(trans('customer.end_time')); ?></label> <input id="end_time" max="23:59" name="end_time" value="<?php echo e(old('end_time')??(isset($campaign)?$campaign->end_time:'')); ?>" type='time' class="form-control"/> </div> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo e(trans('admin.close')); ?></button> <button type="button" class="btn btn-primary submit_campaign_form"><?php echo e(trans('admin.continue')); ?></button> </div> </div> </div> </div> <?php /**PATH /home/picotech/domains/test.sms.picotech.app/public_html/resources/views/customer/dlt_campaign/form.blade.php ENDPATH**/ ?>
|