{{ __('main.expense_report') }}
@if (Auth::user()->user_type == 2)
@endif
{{ __('main.date') }} {{ __('main.expense_amount') }} {{ __('main.towards_category') }} {{ __('main.tax') }} % {{ __('main.tax_amount') }} {{ __('main.payment_method') }} {{ __('main.branch') }}
@php $totaltax = 0; @endphp @foreach ($expenses as $item) @php $unitprice = $item->amount * (100 / (100 + $item->tax_percentage ?? 15)); $taxamount = $item->amount - $unitprice; if ($item->tax_included == 0) { $taxamount = 0; } $totaltax += $taxamount; @endphp @endforeach
{{ $item->date->format('d/m/Y') }} {{ getFormattedCurrency($item->amount) }} {{ $item->head->name }} @if ($item->tax_included != 0) {{ $item->tax_percentage }}% @else - @endif {{ getFormattedCurrency($taxamount) }} {{ getPaymentMode($item->payment_mode) }} {{ $item->createdBy->name ?? '' }}