@extends('portal.layouts.app') @section('title', 'Search') @section('subtitle', $term === '' ? 'Search subscriptions, customers and file batches' : $total.' result'.($total === 1 ? '' : 's').' for "'.$term.'"') @section('content') @if ($term === '')

What are you looking for?

Search by subscription or policy number, customer name, CNIC, mobile, account number, or a batch reference.

@elseif ($total === 0)

No results for “{{ $term }}”

CNIC, mobile and account numbers are encrypted at rest, so those must be an exact value rather than a partial one. Names and reference numbers match on any part.

@endif @if ($subscriptions->isNotEmpty())
@foreach ($subscriptions as $subscription) @endforeach
Reference Customer Product Contribution Status
{{ $subscription->subscription_no }} @if ($subscription->policy_no) {{ $subscription->policy_no }} @endif {{ $subscription->customer->full_name }} {{ $subscription->customer->maskedCnic() }} {{ $subscription->product->code }} {{ $subscription->product->short_name ?? $subscription->product->name }} @if ($subscription->plan) / {{ $subscription->plan->code }} @endif {{ number_format((float) $subscription->contribution_amount) }} {{ $subscription->status->label() }}
Open in Subscriptions with filters →
@endif @if ($customers->isNotEmpty())
@foreach ($customers as $customer) @endforeach
Customer CNIC Mobile Branch Plans
{{ $customer->full_name }} {{ $customer->bank_customer_id ?? $customer->uuid }} {{ $customer->maskedCnic() ?? '-' }} {{ $customer->maskedMobile() ?? '-' }} {{ $customer->branch_name ?? '-' }} {{ $customer->active_subscriptions_count }} / {{ $customer->subscriptions_count }}
Open in Customers with filters →
@endif @if ($batches->isNotEmpty())
@foreach ($batches as $batch) @endforeach
Batch Type Rows Status Created
{{ $batch->batch_no }} {{ $batch->original_name }} {{ $batch->type->label() }} {{ number_format($batch->total_rows) }} {{ $batch->status->label() }} {{ $batch->created_at->format('d M Y H:i') }} {{ $batch->creator?->name }}
@endif @endsection