@extends('layouts.dashboard') @section('title', $pageTitle ?? 'Parties') @section('page_header')
Total {{ $pageTitle ?? 'Parties' }} {{ $totalParties }}
Total
Active {{ $pageTitle ?? 'Parties' }} {{ $activeParties }}
Active
Inactive {{ $pageTitle ?? 'Parties' }} {{ $inactiveParties }}
Inactive
@endsection @section('page_content') @if (session('status'))
{{ session('status') }}
@endif @if ($errors->any())
{{ $errors->first() }}
@endif
@if ($parties->isEmpty())
No parties found. Create one to get started.
@else
@foreach ($parties as $key => $party) @endforeach
S.No Name Company Party Type Opening Balance Balance Type Status Actions
{{ ++$key }} {{ $party->name }} {{ $party->company?->name ?? '—' }} {{ $party->party_type }} {{ number_format((float) $party->opening_balance, 2) }} {{ ucfirst($party->balance_type) }}
@csrf
is_active)> {{ $party->is_active ? 'Active' : 'Inactive' }}
@endif
@endsection @push('styles') @endpush @push('scripts') @endpush