Viewing file: f5a60aab2d4965dbc1c87032d5d0f7c10b9f5d24.php (13.7 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title','Compose | EmailBox'); ?>
<?php $__env->startSection('extra-css'); ?> <link rel="stylesheet" href="<?php echo e(asset('plugins/select2/css/select2.min.css')); ?>"> <link rel="stylesheet" href="<?php echo e(asset('plugins/daterangepicker/daterangepicker.css')); ?>"> <link rel="stylesheet" href="<?php echo e(asset('plugins/icheck-bootstrap/icheck-bootstrap.min.css')); ?>"> <link href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet"> <style> #select2-toNumbers-results, #select2-fromNumber-results{ overflow-y: auto; max-height: 200px; } .icheck-success>input:first-child:checked+input[type=hidden]+label::before, .icheck-success>input:first-child:checked+label::before { background-color: #2f4cdd !important; border-color: #2f4cdd !important; } </style> <?php if(get_settings('tinymc_api_key')): ?> <script src="https://cdn.tiny.cloud/1/<?php echo e(get_settings('tinymc_api_key')); ?>/tinymce/6/tinymce.min.js" referrerpolicy="origin"></script> <?php endif; ?> <?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<!-- Content Header (Page header) --> <section class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-6"> <h1><?php echo e(trans('customer.compose')); ?></h1> </div> <div class="col-sm-6"> <ol class="breadcrumb float-sm-right"> <li class="breadcrumb-item"><a href="<?php echo e(route('customer.emailbox.inbox')); ?>"><?php echo e(trans('customer.emailbox')); ?></a></li> <li class="breadcrumb-item active"><?php echo e(trans('customer.inbox')); ?></li> </ol> </div> </div> </div><!-- /.container-fluid --> </section>
<!-- Main content --> <section class="content"> <div class="row"> <div class="col-md-3"> <a href="<?php echo e(route('customer.emailbox.inbox')); ?>" class="btn btn-primary btn-block mb-3"><?php echo e(trans('customer.back_to_sent')); ?></a> <?php echo $__env->make('customer.emailbox.common', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </div> <!-- /.col --> <div class="col-md-9"> <div class="card card-primary card-outline"> <form id="compose_form" action="<?php echo e(route('customer.emailbox.compose.sent')); ?>" method="post" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <div class="card-header"> <h3 class="card-title"><?php echo e(trans('customer.compose_new_message')); ?></h3> </div> <!-- /.card-header --> <div class="card-body"> <div id="pre_draft"> <?php if(isset($draft)): ?> <input type='hidden' id='draft_id' name='draft_id' value='<?php echo e($draft->id); ?>'/> <?php endif; ?> </div> <div class="row pb-3"> <div class="col-sm-6"> <label ><?php echo e(trans('customer.from')); ?>:</label> <select class="form-control" name="from_email" id="fromEmail"> <?php if($senders): ?> <?php $__currentLoopData = $senders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sender): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option <?php echo e(isset($draft) && isset($draft->formatted_email_from) && $draft->formatted_email_from==$sender->from_mail?'selected':''); ?> value="<?php echo e($sender->from_mail.'@'.$sender->domain); ?>" data-reply-to="<?php echo e($sender->reply_to); ?>" data-from-name="<?php echo e($sender->name); ?>"><?php echo e($sender->from_mail.'@'.$sender->domain); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </select> </div>
<div class="col-sm-6"> <label ><?php echo e(trans('From Name')); ?>:</label> <input type="text" name="from_name" value="<?php echo e(isset($draft) && isset($draft->from_name)?$draft->from_name:''); ?>" id="fromName" class="form-control" placeholder="Example Name"> </div> <div class="col-sm-6 mt-2"> <label ><?php echo e(trans('Reply To')); ?>:</label> <input type="text" name="reply_to" id="replyTo" value="<?php echo e(isset($draft) && isset($draft->reply_to)?$draft->reply_to:''); ?>" class="form-control" placeholder="E.X: replyto@demo.com"> </div>
<div class="col-sm-6 mt-2"> <label ><?php echo e(trans('Subject')); ?>:</label> <input type="text" name="subject" value="<?php echo e(isset($draft) && isset($draft->subject)?$draft->subject:''); ?>" id="subject" class="form-control" placeholder="Enter Email Subject"> </div> </div>
<div class="form-group"> <div class="row"> <div class="col-sm-12"> <label for="">Reciepient Emails</label> <select name="to_email[]" id="toEmail" class="select2 compose-select" multiple="multiple" data-placeholder="<?php echo e(trans('customer.recipient')); ?>:">
<?php if(isset($draft) && $draft->formatted_email_to): ?> <?php $__currentLoopData = $draft->formatted_email_to_array; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $to): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option selected value="<?php echo e($to); ?>"><?php echo e($to); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> <?php if(isset($users_to_contacts)): ?> <optgroup label="Contacts"> <?php $__currentLoopData = $users_to_contacts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $to): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e(json_encode($to)); ?>"><?php echo e($to['value']); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </optgroup> <?php endif; ?>
<?php if(isset($users_to_groups)): ?> <optgroup label="Groups"> <?php $__currentLoopData = $users_to_groups; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $to): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e(json_encode($to)); ?>"><?php echo e($to['value']); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </optgroup> <?php endif; ?> </select> </div> </div> </div> <div class="form-group"> <label for="attach_files"><?php echo e(trans('customer.compose_new_message')); ?>:</label> <textarea name="body" id="compose-textarea" class="form-control compose-body" placeholder="<?php echo e(trans('customer.enter_message')); ?>"><?php echo e(isset($draft)?$draft->body:''); ?></textarea> </div> <div class="form-group"> <label for="attach_files"><?php echo e(trans('customer.choose_file')); ?>:</label> <input type="file" accept="image/*" id="attach_files" class="form-control" name="attach_files[]" multiple> </div> <div class="form-group">
<div class="icheck-success"> <input <?php echo e(isset($draft) && $draft->schedule_datetime?'checked':''); ?> name="isSchedule" type="checkbox" id="isScheduled"> <label for="isScheduled"> <?php echo e(trans('customer.schedule')); ?>
</label> </div>
<input style="display: <?php echo e(isset($draft) && $draft->schedule_datetime?'block':'none'); ?>" name="schedule" value="<?php echo e(isset($draft) && $draft->schedule_datetime?$draft->schedule_datetime->format('m/d/Y h:i A'):''); ?>" id="schedule" type='text' class="form-control"/> </div>
</div> <!-- /.card-body --> <div class="card-footer"> <div class="float-right"> <button id="draft" type="button" class="btn btn-default"><i class="fas fa-pencil-alt"></i> <?php echo e(trans('customer.draft')); ?>
</button> <button type="submit" class="btn btn-primary"><i class="far fa-envelope"></i> <?php echo e(trans('customer.send')); ?>
</button> </div> <button id="reset" type="button" class="btn btn-default"><i class="fas fa-times"></i> <?php echo e(trans('customer.reset')); ?>
</button> </div> <!-- /.card-footer --> </form> </div> <!-- /.card --> </div> </div> <!-- /.row --> </section> <!-- /.content -->
<?php $__env->stopSection(); ?>
<?php $__env->startSection('extra-scripts'); ?> <script src="<?php echo e(asset('js/customer/compose.js')); ?>"></script> <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.min.js" defer></script> <script> fromEmail.on('change', function(e) { const reply_to = $(this).find(':selected').attr('data-reply-to'); const from_name = $(this).find(':selected').attr('data-from-name'); $('#fromName').val(from_name).trigger('change'); $('#replyTo').val(reply_to).trigger('change'); });
<?php if(get_settings('tinymc_api_key')): ?> tinymce.init({ selector: '#compose-textarea', menubar: 'edit insert format table', plugins: 'anchor autolink charmap codesample emoticons image link lists media searchreplace table visualblocks wordcount', toolbar: 'undo redo | blocks fontfamily fontsize | bold italic underline strikethrough | link image media table mergetags | addcomment showcomments | spellcheckdialog a11ycheck | align lineheight | numlist bullist indent outdent | emoticons charmap | removeformat', tinycomments_mode: 'embedded', tinycomments_author: 'Pico Technology', mergetags_list: [ { value: 'first_name', title: 'First Name' }, { value: 'last_name', title: 'Last name' }, { value: 'email', title: 'Email' }, ] }); <?php endif; ?> </script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.customer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/picomail.picotech.app/public_html/resources/views/customer/emailbox/compose.blade.php ENDPATH**/ ?>
|