Define pricing adjustments based on booking duration (in hours).
Leave Upper empty on the last tier to mean "Max" (no upper limit).
@php
$editTiers = old('tiers');
if (!$editTiers) {
$editTiers = $rate->tiers->map(fn($t) => [
'lower' => $t->lower_threshold,
'upper' => $t->upper_threshold,
'adjustment_type' => $t->adjustment_type,
'amount' => $t->adjustment_amount,
])->toArray();
}
if (empty($editTiers)) {
$editTiers = [['lower'=>1,'upper'=>'','adjustment_type'=>'fixed','amount'=>0]];
}
@endphp
@foreach($editTiers as $i => $tier)
@endforeach