@extends('layouts.Member.master') @section('content')

{{ __('messages.proforma_invoices_list') }}

{{ __('messages.proforma_invoices_list') }}

@if (session('success'))
{{ session('success') }}
@endif @if ($proformaInvoices->isEmpty())

{{ __('messages.no_proforma_invoices') }}

{{ __('messages.create_po_first') }}

{{ __('messages.view_purchase_orders') }}
@else @foreach($proformaInvoices as $invoice) @endforeach
{{ __('messages.id') }} {{ __('messages.pi_number') }} {{ __('messages.pi_date') }} {{ __('messages.po_number') }} {{ __('messages.subtotal') }} {{ __('messages.ppn') }} {{ __('messages.grand_total') }} {{ __('messages.dp') }} {{ __('messages.remaining_payment') }} {{ __('messages.actions') }}
{{ $invoice->id }} {{ $invoice->pi_number }} {{ \Carbon\Carbon::parse($invoice->pi_date)->format('d M Y') }} {{ $invoice->purchaseOrder->po_number }} {{ number_format($invoice->subtotal, 2) }} {{ number_format($invoice->ppn, 2) }} {{ number_format($invoice->grand_total_include_ppn, 2) }} {{ number_format($invoice->dp, 2) }} ({{ $invoice->dp_percent }}%) {{ number_format($invoice->remaining_payment, 2) }}
{{ __('messages.view_pdf') }} @if($invoice->payment_proof_path) {{ __('messages.view_dp_proof') }} @if($invoice->second_payment_proof_path) {{ __('messages.view_remaining_payment_proof') }} @else
@csrf

{{ __('messages.remaining_payment') }} Rp{{ number_format($invoice->remaining_payment, 2) }}

@endif @endif
{{ __('messages.download_pdf') }} @if($invoice->payment_proof_path) {{ __('messages.download_dp_proof') }} @if($invoice->second_payment_proof_path) {{ __('messages.download_remaining_payment_proof') }} @else
@csrf

{{ __('messages.dp') }}: Rp{{ number_format($invoice->dp, 2) }} ({{ $invoice->dp_percent }}%)

@endif @else
@csrf

{{ __('messages.dp') }}: Rp{{ number_format($invoice->dp, 2) }} ({{ $invoice->dp_percent }}%)

@endif
@endif
@endsection