관리-도구
편집 파일: 2080a8d7bbb57d114c11a2f6f9653cde.php
<?php $__env->startSection('title', translate('contact_View')); ?> <?php $__env->startSection('content'); ?> <div class="content container-fluid"> <div class="container"> <div class="mb-3"> <h2 class="h1 mb-0 text-capitalize d-flex align-items-center gap-2"> <img width="20" src="<?php echo e(dynamicAsset(path: 'public/assets/back-end/img/message.png')); ?>" alt=""> <?php echo e(translate('message_view')); ?> </h2> </div> <div class="row"> <div class="col-lg-6"> <div class="card mb-3"> <div class="card-header d-flex gap-2 flex-wrap align-items-center justify-content-between"> <h4 class="mb-0 text-capitalize d-flex gap-2 align-items-center text-capitalize"> <i class="fi fi-sr-user"></i> <?php echo e(translate('user_details')); ?> </h4> <form action="<?php echo e(route('admin.contact.update',$contact->id)); ?>" method="post" id="submit-form"> <?php echo csrf_field(); ?> <div class="d-flex justify-content-end"> <?php if($contact->seen==0): ?> <button type="button" class="btn btn-success form-alert" data-id="submit-form" data-message="<?php echo e(translate('want_check_this_message').'?'); ?>"> <i class="fi fi-rr-check-circle"></i> <?php echo e(translate('check')); ?> </button> <?php else: ?> <button type="button" class="btn btn-info text-capitalize" disabled> <i class="fi fi-rr-check-circle"></i> <?php echo e(translate('already_check')); ?> </button> <?php endif; ?> </div> </form> </div> <div class="card-body"> <div class="pl-2 d-flex gap-2 align-items-center mb-3"> <strong class=""><?php echo e($contact->subject); ?></strong> <?php if($contact->seen==1): ?> <label class="badge text-bg-info badge-info mb-0"><?php echo e(translate('seen')); ?></label> <?php else: ?> <label class="badge badge-soft-info mb-0 text-capitalize"><?php echo e(translate('not_seen_yet')); ?></label> <?php endif; ?> </div> <table class="table table-sm table-user-information table-borderless mb-0"> <tbody> <tr> <td><?php echo e(translate('name')); ?>:</td> <td><?php echo e($contact['name']); ?></td> </tr> <tr> <td><?php echo e(translate('mobile_no')); ?>:</td> <td><?php echo e($contact['mobile_number']); ?></td> </tr> <tr> <td><?php echo e(translate('email')); ?>:</td> <td><?php echo e($contact['email']); ?></td> </tr> </tbody> </table> </div> </div> <div class="card mb-3"> <div class="card-header justify-content-center"> <h4 class="mb-0 text-capitalize text-center"> <?php echo e(translate('message_Log')); ?> </h4> </div> <div class="card-body d-flex flex-column gap-2"> <div class="mb-3"> <h5 class="badge text-bg-info badge-info rounded mb-3 d-flex"><?php echo e($contact->name); ?></h5> <div class="d-flex gap-2 mb-1"> <strong><?php echo e(translate('subject')); ?>: </strong> <div><strong><?php echo e($contact->subject); ?></strong></div> </div> <div class="d-flex gap-2"> <strong><?php echo e(translate('message')); ?>: </strong> <div><?php echo e($contact->message); ?></div> </div> </div> <div> <h5 class="badge text-bg-warning badge-warning rounded mb-3 d-flex"><?php echo e(translate('admin')); ?></h5> <?php if($contact['reply']!=null): ?> <?php ($data=json_decode($contact['reply'],true)); ?> <div class="d-flex gap-2 mb-1"> <strong><?php echo e(translate('subject')); ?>: </strong> <div><strong><?php echo e($data['subject']); ?></strong></div> </div> <div class="d-flex gap-2"> <strong><?php echo e(translate('message')); ?>: </strong> <div><?php echo e($data['body']); ?></div> </div> <?php else: ?> <label class="badge text-white bg-danger"><?php echo e(translate('no_reply')); ?>.</label> <?php endif; ?> </div> </div> </div> </div> <div class="col-lg-6"> <div class="card"> <div class="card-body mt-3 mx-lg-4"> <div class="row text-start"> <div class="col-12"> <div class="d-flex justify-content-center"> <h3><?php echo e(translate('send_Mail')); ?></h3> <?php $emailServices_smtp = getWebConfig(name: 'mail_config'); if ($emailServices_smtp['status'] == 0) { $emailServices_smtp = getWebConfig(name: 'mail_config_sendgrid'); } ?> <?php if($emailServices_smtp['status'] != 1): ?> <label class="badge-soft-danger px-1"><?php echo e(translate('configure_your_mail_setup_first').'.'); ?></label> <?php endif; ?> </div> <form action="<?php echo e(route('admin.contact.send-mail', $contact->id)); ?>" method="post"> <?php echo csrf_field(); ?> <div class="form-group mt-2"> <div class="row"> <div class="col-md-12"> <label class="mb-2"><?php echo e(translate('subject')); ?></label> <input class="form-control" name="subject" required placeholder="<?php echo e(translate('subject')); ?>"> </div> <div class="col-md-12 mt-3"> <label class="mb-2"><?php echo e(translate('mail_Body')); ?></label> <textarea class="form-control h-100" name="mail_body" placeholder="<?php echo e(translate('please_send_a_Feedback')); ?>" required></textarea> </div> </div> </div> <div class="d-flex justify-content-end pt-3 mt-5"> <button type="submit" class="btn btn-primary"> <?php echo e(translate('send')); ?> <i class="fi fi-rr-paper-plane-top"></i> </button> </div> </form> </div> </div> </div> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.admin.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home2/slnssare/public_html/resources/views/admin-views/contacts/view.blade.php ENDPATH**/ ?>