
<?php $__env->startSection('content'); ?>
<div class="main-header">
    <div class="admin-header">
        <div class="uk-grid">
            <div class="uk-width-auto">
                <h1 class="uk-margin-small-top main-heading"><?php echo e($title); ?> (<?php echo e('#B'.$buyerRequest->id); ?>)</h1>
            </div>
            <div class="uk-width-expand uk-text-right">
                <a class="uk-button uk-button-default" href="<?php echo e(url('admin/buyer-request')); ?>"> Back</a>
            </div>
        </div>
    </div>
</div>
<?php
    $amenities     = json_decode($buyerRequest->amenities);
    $amenities     = implode(", ",$amenities);
            
    $heatingFuels  = json_decode($buyerRequest->heating_fuel);
    $heatingFuels  = implode(", ",$heatingFuels);
    
    $parkings      = json_decode($buyerRequest->parking);
    $parkings      = implode(", ",$parkings);
    
    $cities        = json_decode($buyerRequest->city);
    $cities        = implode(", ",$cities);
    
    $buildingTypes = json_decode($buyerRequest->type_of_house);
    $buildingTypes = implode(", ",$buildingTypes);
    
?>
<div class="uk-margin uk-width-1-1 uk-margin-auto uk-card uk-card-default uk-card-body small-padding">
    <div class="uk-grid" uk-grid>
        <div class="uk-width-1-1@m uk-text-right">
            <a class="uk-label" href="<?php echo e(url('admin/edit-buyer-request/'.$buyerRequest->id)); ?>">Edit Details</a>
        </div>
        <div class="uk-width-1-5@s">
            <span><b>Name:</b> <br><?php echo e($buyerRequest->users ? $buyerRequest->users->name : ''); ?></span>
        </div>
        <div class="uk-width-1-5@s">
            <span><b>Province:</b> <br><?php echo e($buyerRequest->province); ?></span>
        </div>
        <div class="uk-width-1-5@s">
            <span><b>Region:</b> <br><?php echo e($buyerRequest->region); ?></span>
        </div>
        <div class="uk-width-1-5@s">
            <span><b>City:</b> <br><?php echo e($cities); ?></span>
        </div>
        <div class="uk-width-1-5@s">
            <span><b>Min Price Range:</b> <br>$<?php echo e($buyerRequest->min_price_range); ?><?php echo e($buyerRequest->min_price_tag); ?></span>
        </div>
        <div class="uk-width-1-5@s">
            <span><b>Max Price Range:</b> <br>$<?php echo e($buyerRequest->max_price_range); ?><?php echo e($buyerRequest->max_price_tag); ?></span>
        </div>
        <div class="uk-width-1-5@s">
            <span><b>Bedrooms:</b> <br><?php echo e($buyerRequest->bedrooms); ?></span>
        </div>
        <div class="uk-width-1-5@s">
            <span><b>Bathrooms:</b> <br><?php echo e($buyerRequest->bathrooms); ?></span>
        </div>
        <div class="uk-width-1-5@s">
            <span><b>Building Type:</b> <br><?php echo e($buildingTypes); ?></span>
        </div>
        <div class="uk-width-1-5@s">
            <span><b>Heating and Cooling:</b> <br><?php echo e($heatingFuels); ?></span>
        </div>
        <div class="uk-width-1-5@s">
            <span><b>Amenities WishList:</b> <br><?php echo e($amenities); ?></span>
        </div>
        <div class="uk-width-1-5@s">
            <span><b>Age Property:</b> <br><?php echo e($buyerRequest->age_property); ?></span>
        </div>
        <div class="uk-width-1-5@s">
            <span><b>Building Area:</b> <br><?php echo e($buyerRequest->sqft_property); ?> <?php echo e($buyerRequest->building_area_tag); ?></span>
        </div>
        <div class="uk-width-1-5@s">
            <span><b>Parking:</b> <br><?php echo e($parkings); ?></span>
        </div>
        <div class="uk-width-1-5@s">
            <?php if($buyerRequest->senior_community == 1): ?>
            <span><b>Senior Community:</b> <br>Yes</span>
            <?php else: ?>
            <span><b>Senior Community:</b> <br>No</span>
            <?php endif; ?>
        </div>
        <div class="uk-width-1-5@s">
            <span><b>Financing:</b> <br><?php echo e($buyerRequest->financing); ?></span>
        </div>
        <div class="uk-width-1-1@s">
            <hr>
        </div>
        <div class="uk-width-1-2@s">
            <div class="uk-text-break"><b>Preferred Neighbourhoods:</b> <br><?php echo nl2br($buyerRequest->preferred_neighbourhoods); ?></div>
        </div>
        <div class="uk-width-1-2@s">
            <div class="uk-text-break"><b>Other Information / Feauters Required:</b> <br><?php echo nl2br($buyerRequest->other_request); ?></div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/kelowna/public_html/listingllama.kelowna.website/resources/views/admin/buyer_request/view_detail.blade.php ENDPATH**/ ?>