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/1d36d0e02c51e426476975dccd37a574.php
<?php $__env->startSection('content'); ?>
<div class="grid gap-5 lg:grid-cols-2">
    <form method="post" action="/pricing" class="rounded-lg border bg-white p-4">
        <?php echo csrf_field(); ?>
        <h2 class="mb-4 font-semibold">Pricing Input</h2>
        <label class="mb-3 block text-sm">Room Type<select name="room_type_id" class="mt-1 w-full rounded-md border-slate-300"><?php $__currentLoopData = $roomTypes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $room): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><option value="<?php echo e($room->id); ?>"><?php echo e($room->name); ?> - Base <?php echo e($hotel->currency); ?> <?php echo e($room->base_rate); ?></option><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></select></label>
        <?php $__currentLoopData = ['occupancy'=>'Occupancy %','pickup'=>'Pickup','booking_window'=>'Booking Window','day_of_week'=>'Day Of Week','season'=>'Season']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $field=>$label): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <label class="mb-3 block text-sm"><?php echo e($label); ?><input name="<?php echo e($field); ?>" class="mt-1 w-full rounded-md border-slate-300"></label>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        <button class="rounded-md bg-slate-950 px-4 py-2 text-sm font-semibold text-white">Calculate</button>
    </form>
    <div class="rounded-lg border bg-white p-4">
        <h2 class="mb-4 font-semibold">Recommended Rate</h2>
        <?php if($recommendation): ?>
            <div class="text-4xl font-semibold text-cyan-700"><?php echo e($hotel->currency); ?> <?php echo e(number_format($recommendation['recommended_rate'], 2)); ?></div>
            <ul class="mt-4 grid gap-2 text-sm"><?php $__currentLoopData = $recommendation['reasons']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $reason): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><li class="rounded-md bg-slate-50 px-3 py-2"><?php echo e($reason); ?></li><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></ul>
        <?php else: ?>
            <p class="text-sm text-slate-600">Nhập dữ liệu cầu, pickup, booking window, day of week và season để nhận giá đề xuất.</p>
        <?php endif; ?>
    </div>
</div>
<?php $__env->stopSection(); ?>

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