HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: /home/xedaptot/rms.naniguide.com/storage/framework/views/b0a02ef554f802b436f59c978dcf78ff.php
<?php $__env->startSection('content'); ?>
<div class="grid gap-5 lg:grid-cols-3">
    <form method="post" action="<?php echo e(route('competitors.store')); ?>" class="rounded-lg border bg-white p-4">
        <?php echo csrf_field(); ?>
        <h2 class="mb-4 font-semibold">Competitor Set</h2>
        <label class="mb-3 block text-sm">Competitor Name<input name="name" class="mt-1 w-full rounded-md border-slate-300"></label>
        <label class="mb-3 block text-sm">Date<input type="date" name="rate_date" class="mt-1 w-full rounded-md border-slate-300"></label>
        <label class="mb-3 block text-sm">Competitor Rate<input name="competitor_rate" type="number" step="0.01" class="mt-1 w-full rounded-md border-slate-300"></label>
        <label class="mb-3 block text-sm">Room Type<input name="room_type" class="mt-1 w-full rounded-md border-slate-300"></label>
        <button class="rounded-md bg-slate-950 px-4 py-2 text-sm font-semibold text-white">Add</button>
    </form>
    <div class="rounded-lg border bg-white p-4 lg:col-span-2">
        <h2 class="mb-4 font-semibold">Rate Shopping & Price Positioning</h2>
        <div class="mb-3 rounded-md bg-cyan-50 p-3 text-sm">Hotel average base rate: <b><?php echo e($hotel->currency); ?> <?php echo e(number_format($baseRate, 2)); ?></b></div>
        <table class="w-full text-left text-sm">
            <thead class="bg-slate-100"><tr><th class="p-2">Competitor</th><th>Date</th><th>Rate</th><th>Position</th></tr></thead>
            <tbody><?php $__currentLoopData = $competitors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><tr class="border-t"><td class="p-2"><?php echo e($c->name); ?></td><td><?php echo e($c->rate_date); ?></td><td><?php echo e($hotel->currency); ?> <?php echo e($c->competitor_rate); ?></td><td><?php echo e($baseRate > $c->competitor_rate ? 'Higher' : ($baseRate < $c->competitor_rate ? 'Lower' : 'Parity')); ?></td></tr><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></tbody>
        </table>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', ['heading' => 'Competitor Analysis'], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/xedaptot/rms.naniguide.com/resources/views/rms/competitors.blade.php ENDPATH**/ ?>