@inject('carbon', 'Carbon\Carbon') @inject('parameter', 'App\Models\Parameter') @php $checkinFirst = request('checkin_first'); $checkinLast = request('checkin_last'); $checkinFirstDate = $carbon::parse($checkinFirst); $checkinLastDate = $carbon::parse($checkinLast); $numberOfDays = $checkinFirstDate->diffInDays($checkinLastDate); @endphp @foreach($properties as $property)
Frais de nettoyage: {{ number_format($property->cleaning_fee, 2, ',', ' ') }} TND
@php $totalPrice = $property->current_price * $numberOfDays; $serviceFees = ($totalPrice + $property->cleaning_fee) * ($parameter::getMostRecentParameter()->service_charge / 100); @endphpFrais de service: {{ number_format($serviceFees, 2, ',', ' ') }} TND
Total: {{ number_format($totalPrice + $serviceFees + $property->cleaning_fee, 2, ',', ' ') }} TND
{{--