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

Purchase Parties (Suppliers)

New Supplier
@forelse($parties ?? [] as $party) @empty @endforelse
Code Supplier 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) }} (Pay) @elseif(($party->balance ?? 0) < 0) Rs. {{ number_format(abs($party->balance), 2) }} (Adv) @else Rs. 0.00 @endif
@csrf @method('DELETE')

No suppliers found. Add your first supplier

Total Suppliers: {{ count($parties ?? []) }}
Total Payable: Rs. {{ number_format($totalPayable ?? 0, 2) }}
Total Advance: Rs. {{ number_format($totalAdvance ?? 0, 2) }}
@endsection