@model HairCutQuery
@{
    var paid = false;
    if (Model.PaymentId!=null) {
        if (Model.Regularisation!=null) {
            if (Model.Regularisation.IsSuccess()) {
                paid=true;
            } 
        }
    }
    
}
<dl class="dl-horizontal">
<dt>@Html.DisplayNameFor(m=>m.Prestation)
</dt>
<dd>@Html.DisplayFor(m=>m.Prestation)
</dd>
<dt>@Html.DisplayNameFor(m=>m.PerformerProfile)
</dt>
<dd>@Html.DisplayFor(m=>m.PerformerProfile)
</dd>
<dt>@Html.DisplayNameFor(m=>m.EventDate)
</dt>
<dd>@Html.DisplayFor(m=>m.EventDate)
</dd>
<dt>@Html.DisplayNameFor(m=>m.Location)
</dt>
<dd>@Html.DisplayFor(m=>m.Location)
</dd>
<dt>@Html.DisplayNameFor(m=>m.AdditionalInfo)
</dt>
<dd>@Html.DisplayFor(m=>m.AdditionalInfo)
</dd>
<dt>@SR["La facture"]
</dt>
<dd>@await Component.InvokeAsync("Bill", "Brush", Model, OutputFormat.Html, true, paid )
</dd>
<dt>@Html.DisplayNameFor(m=>m.Regularisation)</dt>
<dd> 
    @Component.Invoke("PayPalButton", Model, "haircut", "HairCutCommand" )
 </dd>
</dl>



