<?php $__env->startSection('content'); ?>
    <div class="panel panel-primary">
        <div class="panel-heading">
            <?php echo e($accommodation->accommodation_name); ?>

            <a class="float_right " href="<?php echo e(url('reviews_list/' . $accommodation->accommodation_id)); ?>">
                <div class="btn right_btn">Zobrazit recenze</div>
            </a>

        </div>
        <div class="panel-body">
            <?php echo $__env->make('flash::message', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

            <div class="panel panel-title"><?php echo e($accommodation->accommodation_description); ?>

                <hr>
                <div class="centered">
                    <?php if($equipment != null): ?>
                        <table class="table table-responsive table-hover" >
                            <?php if($beds != null): ?>
                                <tr>
                                    <td> <b>Počet lůžek: </b></td>
                                    <td class=""><?php echo e($beds); ?></td>
                                </tr>
                            <?php endif; ?>
                            <?php if($rooms_number != null): ?>
                                <tr>
                                    <td> <b>Počet pokojů: </b></td>
                                    <td class=""><?php echo e($rooms_number); ?></td>
                                </tr>
                            <?php endif; ?>
                            <tr>
                                <th class="">Vybavení:</th>
                                <td class="">
                                    <?php $__currentLoopData = $equipment; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $equip): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <b> > </b><?php echo e($equip->equipment_name); ?>

                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </td>
                            </tr>
                        </table>

                    <?php endif; ?>
                </div>

            </div>
            <br />
            <?php if($rooms != null): ?>
                <?php $__currentLoopData = $rooms; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $room): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="row">
                        <div class="panel panel-primary">
                            <div class="panel-heading">
                                <?php echo e($room->room_name); ?>

                                <a href="<?php echo e(url('create_reservation/' . $room->room_id)); ?>" class="float_right">
                                    <div class="btn right_btn">Vytvořit rezervaci</div>
                                </a>
                            </div>
                            <div class="panel-body">
                                <div class="float_left col-md-6">
                                    <div class="room_info">
                                        <table class="table float_left table-hover">
                                            <tr>
                                                <td class="col-md-1"> <b>Počet lůžek: </b></td>
                                                <td class="col-md-1"><?php echo e($room->beds); ?></td>
                                            </tr>
                                            <tr>
                                                <td class="col-md-1"><b>Cena za noc a lůžko v Kč:</b> </td>
                                                <td class="col-md-1"><?php echo e($room->price); ?>

                                                </td>
                                            </tr>
                                        </table>
                                    </div>

                                </div>
                                <div class="float_right col-md-5">
                                    <?php if($room->image_id != null): ?>
                                        <img alt="playground" class="float_right image_width  " src="data:image/jpeg;base64,<?php echo e(base64_encode($room->image)); ?>">
                                    <?php else: ?>
                                        <img alt="playground" class="float_right col-md-7" src="<?php echo e(asset('images/img_placeholder.png')); ?>">
                                    <?php endif; ?>
                                </div>
                            </div>
                        </div>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                <div class="panel panel-primary">
                    <div class="panel panel-heading">Kontaktní údaje</div>
                    <div class="panel panel-body box">
                        <div class="centered">
                            <table class="table table-responsive table-hover">
                                <tr>
                                    <th>Kontaktní osoba</th>
                                    <td><?php echo e($user->name); ?> <?php echo e($user->lname); ?></td>
                                </tr>
                                <tr>
                                    <th> Telefonní číslo</th>
                                    <td><?php echo e($accommodation->accommodation_phone_number); ?></td>
                                </tr>
                                <tr>
                                    <th>E-mail</th>
                                    <td><?php echo e($accommodation->accommodation_email); ?> </td>
                                </tr>
                                <tr>
                                    <th>Webové stránky</th>
                                    <td><a href='http://<?php echo e($accommodation->website); ?>'>Odkaz na web</a></td>
                                </tr>

                                <tr>
                                    <th>Město</th>
                                    <td><?php echo e($address->town); ?> </td>
                                </tr>
                                <tr>
                                    <th>Ulice</th>
                                    <td><?php echo e($address->street_name); ?></td>
                                </tr>
                                <tr>
                                    <th>Číslo popisné</th>
                                    <td><?php echo e($address->street_number); ?></td>
                                </tr>
                            </table>
                        </div>
                        <div class="mapper" style="height: 400px;">
                            <?php echo Mapper::render(); ?>

                        </div>
                    </div>
                </div>
            <?php else: ?>
                <div class="panel-body">
                    <h3>V ubytování v současné době nejsou vytvořeny žádné pokoje</h3>
                </div>
            <?php endif; ?>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>