{{-- Hoteleria (Transactions by Payment Method) --}}
@foreach ($payment_methods as $payment_method)
@php
$methodName = Str::slug($payment_method->method_name, '_');
@endphp
@include("modules.audits.components.payment_method_block", [
'payment_method' => $payment_method,
'revenues' => [
floatval($incomes->lodging->$methodName) ?? 0.0,
floatval($incomes->consumption->$methodName) ?? 0.0,
floatval($incomes->extra->$methodName) ?? 0,
],
'tab_prefix' => 'hotel',
])
@endforeach
@if ($include_restaurant)
{{-- Restaurante (Transactions by Payment Method) --}}
@foreach ($payment_methods as $payment_method)
@php
$methodName = Str::slug($payment_method->method_name, '_');
@endphp
@include("modules.audits.components.payment_method_block", [
'revenues' => [
floatval($incomes->restaurant->$methodName) ?? 0,
],
'tab_prefix' => 'restaurant',
])
@endforeach
@endif
@if ($divide_restaurant_modules)
{{-- Tiendita (Transactions by Payment Method) --}}
@foreach ($payment_methods as $payment_method)
@php
$methodName = Str::slug($payment_method->method_name, '_');
@endphp
@include("modules.audits.components.payment_method_block", [
'payment_method' => $payment_method,
'revenues' => [
floatval($incomes->mini_shop->$methodName) ?? 0,
],
'tab_prefix' => 'mini_shop',
])
@endforeach
@endif