@extends('layout.app') @section('title', 'Edit Tagihan - Sistem Manajemen ISP') @section('content')
edit Form Edit Tagihan
@csrf @method('PUT')
@error('pelanggan_id')
{{ $message }}
@enderror
Nomor invoice tidak dapat diubah @error('nomor_invoice')
{{ $message }}
@enderror
@error('tanggal_tagihan')
{{ $message }}
@enderror
@error('tanggal_jatuh_tempo')
{{ $message }}
@enderror
@error('periode_awal')
{{ $message }}
@enderror
@error('periode_akhir')
{{ $message }}
@enderror
Rp
@error('jumlah_tagihan')
{{ $message }}
@enderror
Rp
@error('denda')
{{ $message }}
@enderror
Rp
Total = Jumlah Tagihan + Denda @error('total_tagihan')
{{ $message }}
@enderror
@error('status_tagihan')
{{ $message }}
@enderror
@error('keterangan')
{{ $message }}
@enderror
closeBatal
Informasi Tagihan
No. Invoice:
{{ $tagihan->nomor_invoice }}
Dibuat:
{{ $tagihan->created_at->format('d/m/Y H:i') }}
Terakhir Update:
{{ $tagihan->updated_at->format('d/m/Y H:i') }}
Status Saat Ini:
{{ $tagihan->status_tagihan }}
Riwayat Pembayaran
@if($tagihan->pembayaran->count() > 0) @php $totalPaid = $tagihan->pembayaran->where('status_konfirmasi', 'Disetujui')->sum('jumlah_pembayaran'); @endphp
Total Dibayar:
Rp {{ number_format($totalPaid, 0, ',', '.') }}
Sisa:
Rp {{ number_format($tagihan->total_tagihan - $totalPaid, 0, ',', '.') }}
@else

Belum ada pembayaran

@endif
@endsection @section('scripts') @endsection