@extends('admin.layouts.wholesale-live') @section('page-title', 'Party Details') @section('wholesale-actions') Party ListEdit party @if($party->active && auth()->user()->hasPermission('wholesale.invoice'))Create Invoice@endif @if(auth()->user()->hasPermission('wholesale.payments'))Receive Payment@endif @if(auth()->user()->hasPermission('wholesale.ledger'))Party Ledger@endif @endsection @section('wholesale-content')

{{ $party->name }}

{{ $party->active ? 'Active' : 'Inactive' }}
Party code
{{ $party->code() }}
Contact person
{{ $party->contact ?? '—' }}
Mobile number
{{ $party->phone }}
Email
{{ $party->email ?? '—' }}
Opening due (BDT)
{{ number_format($party->opening_due_minor / 100, 2) }}
Opening date
{{ $party->opening_date->format('d M Y') }}
Address
{{ $party->address ?? '—' }}
Saved
{{ $party->created_at->timezone('Asia/Dhaka')->format('d M Y, h:i A') }}

Opening due is the original starting amount owed. Its remaining balance and invoice transactions appear in the Party Ledger.

Party change history

@foreach($events as $event) @endforeach
DateActionChanges
{{ $event->created_at->timezone('Asia/Dhaka')->format('d M Y, h:i A') }}{{ ucfirst($event->action) }} @foreach(['name' => 'Business', 'contact' => 'Contact', 'phone' => 'Mobile', 'email' => 'Email', 'address' => 'Address', 'active' => 'Active'] as $field => $label) @if($event->before === null || ($event->before[$field] ?? null) !== ($event->after[$field] ?? null))
{{ $label }}: @if($event->before !== null){{ $field === 'active' ? ($event->before[$field] ? 'Yes' : 'No') : ($event->before[$field] ?? '—') }} → @endif {{ $field === 'active' ? ($event->after[$field] ? 'Yes' : 'No') : ($event->after[$field] ?? '—') }}
@endif @endforeach @if($event->before === null)
Opening due (BDT): {{ number_format($event->after['opening_due_minor'] / 100, 2) }} · {{ $event->after['opening_date'] }}
@endif @if($event->before !== null && array_diff_assoc($event->before, $event->after) === ['version' => $event->before['version']])No contact or status change.@endif
{{ $events->total() }} events
@if($events->previousPageUrl())Previous@endif @if($events->nextPageUrl())Next@endif
@endsection