|
{{ $donation->beneficiary ? $donation->beneficiary->name : 'N/A' }} |
{{ $currency->symbol }}
@if ($donation->financialIncome->currency->symbol == $currency->symbol)
{{ number_format(round( $donation->financialIncome->amount, 2), 2) }}
@else
@php
$rate = App\Models\FinancialRate::withTrashed()->findOrFail($donation->financialIncome->rate_id);
if ($rate->base_currency_id == $donation->financialIncome->currency_id) {
$v = $donation->financialIncome->amount * $rate->rate;
// echo $v;
} else {
$v = $donation->financialIncome->amount / $rate->rate;
}
echo number_format(round($v, 2), 2);
@endphp
@endif
|
{{ $donation->created_at->format('d/m/Y') }}
|
@empty