<?php
    $astuce = Service::get($_REQUEST['id']);
?>
<div class="modal-header bg-primary white">
    <h4 style="margin:0;" class="modal-title" id="myModalLabel8">Fiche d'un service</h4>
    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
        <span aria-hidden="true">&times;</span>
    </button>
</div>
<div class="modal-body">        
    <div class="row">
        <div class="col-md-3">
            <fieldset class="form-group" style="text-align: center;">
                <label for="helpInputTop">Icone</label><br>
                <img src="<?=strlen($astuce->icone) == 0 ? 'assets/images/camera_icon.png' : 'https://www.savanafinance.com/media/service/'.$astuce->icone?>" style="width: 82px;max-height: 82px;cursor: pointer;    border: 1px solid;">
            </fieldset>
        </div>
        <div class="col-md-9">
            <fieldset class="form-group" style="text-align: center;">
                <label for="helpInputTop">Couverture</label><br>
                <img src="<?=strlen($astuce->image) == 0 ? 'assets/images/camera_icon.png' : 'https://www.savanafinance.com/media/'.$astuce->image?>"  style="width: 450px;max-height: 250px;cursor: pointer;    border: 1px solid;">
            </fieldset>
        </div>
    </div>
    <fieldset class="form-group">
        <label for="helpInputTop">Titre : <b><?=$astuce->intitule?></b></label>
    </fieldset>
    <fieldset class="form-group">
        <label for="helpInputTop">Description</label><br>
        <?=$astuce->description?>
    </fieldset>
</div>
<div class="modal-footer">
    <button type="button" class="btn grey btn-secondary" data-dismiss="modal">Fermer</button>
</div>