<ul>
@foreach($fees as $fee)
    @php $amount = $fee->fee->fee;
  $f = new \NumberFormatter('vi_VN', \NumberFormatter::SPELLOUT);

        $feeText = $f->format($amount) . ' đồng';
 @endphp
<li style="text-align:justify"><span style="font-family:Times New Roman,Times,serif">&nbsp;<span style="font-size:12.5pt">{{ optional($fee->fee)->name }}: {{ number_format(optional($fee->fee)->fee, 0, '.', '.') }} {{ optional($fee->fee)->unit }} (<em>Bằng chữ: {{ $feeText }} {{ $fee->fee->unit  }}).</em></span></span></li>
    @endforeach
</ul>