@extends('layouts.app') @section('page-title', __('Payments')) @section('page-heading', __('Payments')) @section('styles') @endsection @section('content')
| User | Amount | Net Payable | Tax | Productivity | Status | Invoice | Actions |
|---|---|---|---|---|---|---|---|
| {{ $payment->user->name ?? 'N/A' }} | {{ number_format($payment->amount_payable, 2) }} | {{ number_format($payment->net_payable, 2) }} | {{ number_format($payment->tax, 2) }} | {{ isset($payment->calculated_productivity) ? number_format($payment->calculated_productivity, 2) : $payment->productivity }} | {{ $payment->status }} | {{-- Show FAM Invoice if available --}} @if(isset($payment->fam_invoice) && $payment->fam_invoice) View (FAM) {{-- Fall back to payment invoices --}} @elseif($payment->invoice_file) View @elseif($payment->new_invoice_file) View @else No Invoice @endif |