@extends('admin.layouts.inventory') @section('title', $project->customer_name) @push('head') @endpush @section('content') @php $f = $financials ?? []; $fmt = fn ($n) => '₹'.number_format((float) ($n ?? 0), 2); $status = $project->status ?? '—'; $tabUrl = fn (string $name) => route('admin.inventory.projects.show', ['project' => $project, 'tab' => $name]); $tabs = [ 'overview' => 'Overview', 'payments' => 'Payments', 'payouts' => 'Payouts', 'materials' => 'Material on site', 'revisions' => 'Revisions', 'photos' => 'Photos', ]; @endphp
This project’s income for the company is roughly {{ $fmt($f['tenant_total_income'] ?? 0) }} (commission {{ $fmt($f['commission_amount'] ?? 0) }} + remaining GST {{ $fmt($f['remaining_gst_liability'] ?? 0) }}). Material purchase is {{ $fmt($f['material_purchase_amount'] ?? $f['material_total_cost'] ?? 0) }} vs dispatch/charge {{ $fmt($f['material_dispatch_amount'] ?? $f['material_issued_cost'] ?? 0) }} (margin {{ $fmt($f['material_margin'] ?? 0) }} = dispatch − purchase).
No customer payments recorded for this project.
@else| Date | Receiver | Amount | UTR / Ref | Description |
|---|---|---|---|---|
| {{ $payment->payment_date?->format('d M Y') ?? '—' }} | {{ $payment->receiver_name ?: '—' }} | {{ $fmt($payment->amount) }} | {{ $payment->utr_or_reference ?: '—' }} | {{ $payment->description ?: '—' }} |
No payout requests for this project.
@else| Requested | By | Type | Amount | Net | GST | TDS | Method | Status | UTR |
|---|---|---|---|---|---|---|---|---|---|
| {{ $payout->created_at?->format('d M Y') ?? '—' }} | {{ $payout->requestedBy?->name ?? '—' }} | {{ str($payout->payout_type ?? '—')->replace('_', ' ')->title() }} | {{ $fmt($payout->amount) }} | {{ $fmt($payout->net_amount) }} | {{ $fmt($payout->gst_amount) }} | {{ $fmt($payout->tds_amount) }} | {{ strtoupper($payout->payout_method ?? '—') }} | {{ str($pStatus)->title() }} | {{ $payout->utr_or_reference ?: ($payout->payment?->utr_or_reference ?: '—') }} |
No material dispatches to this project yet.
@else| Document | From warehouse | Date | Status | Gross | Tax | Total amount | Action |
|---|---|---|---|---|---|---|---|
{{ $dispatch->document_number }} |
{{ $dispatch->sourceWarehouse?->name ?? '—' }} | {{ $dispatch->transaction_date?->format('d M Y') ?? '—' }} | {{ $dStatus }} | {{ $fmt($totals['gross']) }} | {{ $fmt($totals['tax']) }} | {{ $fmt($totals['total']) }} | @include('admin.inventory.partials.action_icons', [ 'view' => route('admin.inventory.dispatches.show', $dispatch), ]) |
No goods receipts delivered directly to this project site.
@else| Document | Supplier | Date | Status | Gross | Tax | Total amount | Action |
|---|---|---|---|---|---|---|---|
{{ $receipt->document_number }} |
{{ $receipt->supplier?->name ?? '—' }} | {{ $receipt->transaction_date?->format('d M Y') ?? '—' }} | {{ $rStatus }} | {{ $fmt($totals['gross']) }} | {{ $fmt($totals['tax']) }} | {{ $fmt($totals['total']) }} | @include('admin.inventory.partials.action_icons', [ 'view' => route('admin.inventory.goods-receipts.show', $receipt), ]) |
No revisions yet. Create one.
@else| # | Document | Current | Status |
|---|---|---|---|
| {{ $revision->revision_number }} | {{ $revision->document_number }} |
{{ $revision->is_current ? 'Yes' : 'No' }} | {{ $revision->status?->value ?? $revision->status }} |
Upload and review site blank, structure, solar plate, and meter photos from the media page.
Open installation photos