@extends('layouts.app') @section('content')

Sale Parties (Customers)

New Customer
@forelse($parties ?? [] as $party) @empty @endforelse
Code Customer Name Contact Person Phone City Balance Actions
{{ $party->code }} {{ $party->name }} {{ $party->contact_person ?? '-' }} {{ $party->phone ?? '-' }} {{ $party->city ?? '-' }} @if(($party->balance ?? 0) > 0) Rs. {{ number_format($party->balance, 2) }} (Rec) @elseif(($party->balance ?? 0) < 0) Rs. {{ number_format(abs($party->balance), 2) }} (Adv) @else Rs. 0.00 @endif
@csrf @method('DELETE')

No customers found. Add your first customer

Total Customers: {{ count($parties ?? []) }}
Total Receivable: Rs. {{ number_format($totalReceivable ?? 0, 2) }}
Total Advance: Rs. {{ number_format($totalAdvance ?? 0, 2) }}
@endsection