

<?php $__env->startSection('content'); ?>
<div class="container">
    <h1>View Event</h1>
    <div class="form-group">
        <label class="form-label" style="font-weight: bold;">List</label>
        <p><?php echo e($event->list->title); ?></p>
    </div>
    <div class="form-group">
        <label class="form-label" style="font-weight: bold;">Description</label>
            <p>
                <?php 
                    $description = $event->description;

                    $content1 = new Illuminate\Support\HtmlString(strip_tags($description, '<p><a><strong><em><ul><ol><li><blockquote><code><pre>'));
                    $content2 = new Illuminate\Support\HtmlString(Str::markdown($content1, [
                        'allow_unsafe_links' => false,
                    ])); 

                ?>
                <?php echo e($content2); ?>

            </p>                               
    </div>
    <div class="form-group">
        <label class="form-label" style="font-weight: bold;">Short Title</label>
        <p><?php echo e($event->short_title); ?></p>
    </div>
    <div class="form-group">
        <label class="form-label" style="font-weight: bold;">Price</label>
        <p><?php echo e($event->price); ?></p>
    </div>


    <div class="form-group" style="font-weight: bold;">
        <label>Image</label><br>
        <img src="<?php echo e($event->imageURL); ?>" alt="List Image" width="150">
    </div>

    <a href="<?php echo e(route('edit-event', encrypt($event->id))); ?>" class="btn btn-warning">Edit</a>
    <form action="<?php echo e(route('delete-event', encrypt($event->id))); ?>" method="POST" onsubmit="return confirm('Are you sure you want to delete this event?');" style="display:inline;">
        <?php echo csrf_field(); ?>
        <?php echo method_field('POST'); ?>
        <button type="submit" class="btn btn-danger">Delete</button>
    </form>
    <a href="<?php echo e(url()->previous()); ?>" class="btn btn-secondary">Back to Events</a>


</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/listings/resources/views/events/view.blade.php ENDPATH**/ ?>