/home/brandsfa/www/storage/framework/views/f2c41c445ca27b6be39e9672af7b480d.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">
                            <h5 class="mb-0 text-capitalize d-flex text-capitalize">
                                <i class="tio-user-big"></i>
                                <?php echo e(translate('user_details')); ?>

                            </h5>
                            <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="tio-checkmark-circle"></i> <?php echo e(translate('check')); ?>

                                        </button>
                                    <?php else: ?>
                                        <button type="button" class="btn btn-info" disabled>
                                            <i class="tio-checkmark-circle text-capitalize"></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 badge-soft-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-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">
                            <h5 class="mb-0 text-capitalize">
                                <?php echo e(translate('message_Log')); ?>

                            </h5>
                        </div>
                        <div class="card-body d-flex flex-column gap-2">
                            <div class="mb-3">
                                <h5 class="px-2 py-1 badge-soft-info rounded mb-3 d-flex"><?php echo e($contact->name); ?></h5>
                                <div class="flex-start mb-1">
                                    <strong class="<?php echo e(Session::get('direction') === "rtl" ? 'ml-1' : 'mr-1'); ?>"><?php echo e(translate('subject')); ?>: </strong>
                                    <div><strong><?php echo e($contact->subject); ?></strong></div>
                                </div>
                                <div class="flex-start">
                                    <strong class="<?php echo e(Session::get('direction') === "rtl" ? 'ml-1' : 'mr-1'); ?>"><?php echo e(translate('message')); ?>: </strong>
                                    <div><?php echo e($contact->message); ?></div>
                                </div>
                            </div>
                            <div>
                                <h5 class="px-2 py-1 badge-soft-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="flex-start mb-1">
                                        <strong class="<?php echo e(Session::get('direction') === "rtl" ? 'ml-1' : 'mr-1'); ?>"><?php echo e(translate('subject')); ?>: </strong>
                                        <div><strong><?php echo e($data['subject']); ?></strong></div>
                                    </div>
                                    <div class="flex-start">
                                        <strong class="<?php echo e(Session::get('direction') === "rtl" ? 'ml-1' : 'mr-1'); ?>"><?php echo e(translate('message')); ?>: </strong>
                                        <div><?php echo e($data['body']); ?></div>
                                    </div>
                                <?php else: ?>
                                    <label class="badge badge-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>
                                        <label class="badge-soft-danger px-1"><?php echo e(translate('configure_your_mail_setup_first').'.'); ?></label>
                                    </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="title-color"><?php echo e(translate('subject')); ?></label>
                                                    <input class="form-control" name="subject" required>
                                                </div>
                                                <div class="col-md-12 mt-3">
                                                    <label class="title-color"><?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 px-4">
                                            <?php echo e(translate('send')); ?><i class="tio-send ml-2"></i>
                                            </button>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.back-end.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/amkworld/public_html/resources/views/admin-views/contacts/view.blade.php ENDPATH**/ ?>