@extends('layouts.master')
@section('title', 'Journal Information')
@section('css')
@endsection
@section('content')
| No | Pelanggan | Salesman | Zone | Nomor Faktur Penjualan | Tanggal Faktur Penjualan | Waktu Tenggat | Total Piutang | Total Terbayar | Sisa Piutang | Status |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $no++ }} | {{ $cust->customer_name }} | {{ $cust->sales??'' }} | {{ $cust->zone??'' }} | {{ $rei->document_number }} | {{ \Carbon\Carbon::parse($rei->document_date)->format('d M Y') }} | {{ \Carbon\Carbon::parse($rei->due_date)->format('d M Y') }} | {{ number_format($rei->total_debt,2) }} | {{ number_format($rei->{'Amount Paid'},2) }} | {{ number_format($rei->debt_balance,2) }} | {{ $rei->debt_balance == 0 ? 'Terbayar' : ($rei->debt_balance == $rei->total_debt ? 'Belum Terbayar' : 'Terbayar Sebagian') }} |