File: /var/www/html/owlcrm/storage/framework/views/a9603b2481aee4077b767b8fa248b8b7.php
<?php $__env->startSection('title', 'OWL CRM Dashboard'); ?>
<?php $__env->startSection('content_header'); ?>
<h1>Reminder</h1>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<?php if(session('error')): ?>
<h6 class="alert alert-danger">
<?php echo e(session('error')); ?>
</h6>
<?php endif; ?>
<?php if($errors->any()): ?>
<div class="alert alert-danger">
<ul>
<?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<li><?php echo e($error); ?></li>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</ul>
</div>
<?php endif; ?>
<div class="row justify-content-between mb-5">
<div class="col-auto">
<a href="<?php echo e(route('reminder.index')); ?>" class="btn btn-secondary">
<i class="fas fa-arrow-left"></i> Back to Reminder
</a>
</div>
<div class="col-auto">
</div>
<div class="col-auto">
<a href="<?php echo e(route('reminder.edit', $reminder->id)); ?>" class="btn btn-primary">
<i class="fas fa-pencil-alt"></i> Edit Reminder
</a>
<button type="button" class="btn btn-danger" data-toggle="modal" data-target="#delete">
<i class="fa fa-trash-alt"></i> Delete Reminder
</button>
</div>
</div>
<div class="row">
<div class="col-12 col-sm-6">
<div class="card card-dark">
<div class="card-header">
<h3 class="card-title">Reminder Information</h3>
<div class="card-tools">
<button type="button" class="btn btn-tool" data-card-widget="collapse">
<i class="fas fa-minus"></i>
</button>
</div>
</div>
<div class="card-body">
<ul class="list-group list-group-flush">
<li class="list-group-item"><b>Reminder To:</b>
<?php echo e($reminder->user->first_name && $reminder->user->last_name ? $reminder->user->first_name . $reminder->user->last_name : 'n/a'); ?>
</li>
<li class="list-group-item"><b>Created By:</b>
<?php echo e($reminder->created_by_user->first_name && $reminder->created_by_user->last_name ? $reminder->created_by_user->first_name . $reminder->created_by_user->last_name : 'n/a'); ?>
</li>
<li class="list-group-item"><b>Entity Type:</b> <?php echo e($reminder->entity_type); ?></li>
<li class="list-group-item"><b>Description:</b>
<?php echo e($reminder->description); ?></li>
<li class="list-group-item"><b>Reminder Date:</b>
<?php echo e(formatDate($reminder->reminder, 'Y/m/d H:i:s')); ?>
</li>
<li class="list-group-item"><b>Is Notified:</b>
<?php echo e($reminder->is_notified); ?></li>
<li class="list-group-item"><b>Email Notification:</b>
<?php echo e($reminder->email_notification == 0 ? 'no' : 'yes'); ?></li>
<li class="list-group-item"><b>Status:</b> <?php echo e($reminder->status == 0 ? 'in-active' : 'active'); ?>
</li>
</ul>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="delete" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel"><?php echo e($reminder->name); ?></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p>This will delete this reminder permanently</p>
<p>Are you sure?</p>
</div>
<div class="modal-footer">
<form method="POST" action="<?php echo e(route('reminder.destroy', $reminder->id)); ?>">
<!-- CSRF Token -->
<?php echo csrf_field(); ?>
<!-- Hidden input to simulate DELETE method -->
<input type="hidden" name="_method" value="DELETE">
<button type="submit" class="btn btn-danger" id="delete_btn" data-id="' . $row->id . '">Yes,
Delete</button>
</form>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('css'); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
<script>
console.log("Hi, I'm using the Laravel-AdminLTE package!");
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('adminlte::page', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/owlcrm/resources/views/users/reminder/show.blade.php ENDPATH**/ ?>