@if ($showFilters) @include('maintenance.filters-apartment') @endif
@if($showActions) @lang('app.pay') @endif
@forelse ($maintenances as $item) @empty @endforelse
@lang('app.year') @lang('app.month') @lang('modules.settings.apartmentNumber') @lang('modules.maintenance.totalCost') @lang('modules.maintenance.paymentDueDate') @lang('modules.maintenance.paymentDate') @lang('app.status') @lang('app.action')
{{-- @dump($item->id) --}} {{ $item->maintenanceManagement->year }} {{ ucwords(strtolower($item->maintenanceManagement->month)) }} {{ ($item->apartment->apartment_number) }} {{ currency_format($item->cost) }} {{ \Carbon\Carbon::parse($item->maintenanceManagement->payment_due_date)->format('d F Y') ?? '--' }} @if($item->payment_date ==null) -- @else {{ \Carbon\Carbon::parse($item->payment_date)->format('d F Y') ?? '--' }} @endif
@if($item->paid_status == "paid") {{ucFirst($item->paid_status)}} @else {{ucFirst($item->paid_status)}} @endif
@if($item->paid_status == "paid") @lang('app.download') @if(!empty($item->payment_proof)) @lang('app.paymentProof') @endif @else @lang('app.pay') @endif
@lang('messages.noMaintenanceFound')
{{ $maintenances->links() }}
{{ __("modules.maintenance.addPaymentDetail") }} @if($apartment_maintenance) @livewire('forms.maintenance-pay',['apartment_maintenance' => $apartment_maintenance], key(str()->random(50))) @endif {{ __('Close') }} {{ __("modules.maintenance.addPaymentDetail") }}
@csrf
@lang('app.save')
{{ __('Close') }}