Customer Search

View All Customers
@if(request('search')) Clear @endif
@if(request('search') && isset($searchResults)) @if($searchResults->count() > 0)

Search Results ({{ $searchResults->count() }})

@foreach($searchResults as $customer) @endforeach
Customer Contact CNIC Address Type Status Actions
{{ $customer->name }}
ID: #{{ $customer->id }}
{{ $customer->phone }}
@if($customer->email)
{{ $customer->email }}
@endif
{{ $customer->cnic ?? 'N/A' }} {{ Str::limit($customer->address ?? 'N/A', 50) }} {{ ucfirst($customer->customer_type ?? 'Individual') }} {{ $customer->is_active ? 'Active' : 'Inactive' }}
@else

No customers found matching "{{ request('search') }}"

@endif @endif

My Salary & Earnings

Rs. {{ number_format($stats['current_salary'] ?? 0, 0) }}

Current Salary

Rs. {{ number_format($stats['total_earned'] ?? 0, 0) }}

Total Earned

Rs. {{ number_format($stats['this_month'] ?? 0, 0) }}

This Month

{{ $stats['payment_count'] ?? 0 }}

Total Payments

Salary Structure

@if($salaryStructure)

Basic Salary

Rs. {{ number_format($salaryStructure->basic_salary ?? 0, 0) }}

Allowances

Rs. {{ number_format($salaryStructure->allowances ?? 0, 0) }}

Deductions

Rs. {{ number_format($salaryStructure->deductions ?? 0, 0) }}

Net Salary

Rs. {{ number_format($salaryStructure->net_salary ?? 0, 0) }}

@else

No salary structure assigned

@endif

Recent Salary Payments

@if($recentPayments->count() > 0)
@foreach($recentPayments as $payment) @endforeach
Month Amount Payment Date Status
{{ $payment->month ?? 'N/A' }} Rs. {{ number_format($payment->net_salary ?? 0, 0) }} {{ $payment->payment_date ? $payment->payment_date->format('M d, Y') : 'N/A' }} {{ ucfirst($payment->status ?? 'pending') }}
@else

No salary payments yet

@endif