@extends('layouts.app') @section('title', 'Laporan Penagihan - MCU Klinik Mustika') @section('breadcrumb')

Laporan Penagihan

@endsection @section('content')
Total Undangan

{{ number_format($stats['total_invitations']) }}

Total Nilai

Rp {{ number_format($stats['total_amount'], 0, ',', '.') }}

Diproses

{{ number_format($stats['processed_invitations']) }}

Bulan Ini

Rp {{ number_format($stats['this_month_amount'], 0, ',', '.') }}

Data Penagihan Perusahaan

@canRoute ('reports.billing.export') Export Excel @endcanRoute
@if (request()->has('company_id') || request()->has('month') || request()->has('year') || request()->has('search'))
Filter Aktif: @if (request('company_id') && request('company_id') !== 'all') Perusahaan: {{ $companies->find(request('company_id'))->name ?? 'N/A' }} @endif @if (request('month') && request('month') !== 'all') Bulan: {{ date('F', mktime(0, 0, 0, request('month'), 1)) }} @endif @if (request('year') && request('year') !== 'all') Tahun: {{ request('year') }} @endif @if (request('search')) Pencarian: "{{ request('search') }}" @endif
@canRoute ('reports.billing') Reset Filter @endcanRoute
@endif
@forelse ($billings as $billing) @empty @endforelse
No. ID Undangan Perusahaan Paket MCU Tanggal MCU Jumlah Peserta Total Nilai Status Aksi
{{ $loop->iteration + ($billings->currentPage() - 1) * $billings->perPage() }} #{{ $billing->id }}
{{ substr($billing->company->name, 0, 1) }}
{{ $billing->company->name }}
{{ $billing->company->city ?? '-' }}
{{ $billing->mcuPackage->name ?? '-' }} @if ($billing->mcu_date) {{ \Carbon\Carbon::parse($billing->mcu_date)->format( 'd/m/Y', ) }} @else - @endif {{ $billing->employees->count() }} orang Rp {{ number_format($billing->total_amount, 0, ',', '.') }} @if ($billing->status === 'completed') Selesai @elseif ($billing->status === 'processed') Diproses @elseif ($billing->status === 'submitted') Dikirim @else {{ ucfirst($billing->status) }} @endif
@canRoute ('corporate-invitations.show') @endcanRoute @if ($billing->status === 'completed') @canRoute ('invoices.pdf') @endcanRoute @endif
Tidak ada data penagihan

Belum ada data penagihan yang sesuai dengan filter.

@if ($billings->hasPages())
Menampilkan {{ $billings->firstItem() }} sampai {{ $billings->lastItem() }} dari {{ $billings->total() }} data
{{ $billings->appends(request()->query())->links() }}
@endif
@endsection @push('scripts') @endpush