@extends('layout.app') @section('content') @php($permissions = userPermissions()) @if($client)

Customer Information ({{ $client->clients_status }})

@if (in_array('customer-recharge', $permissions)) @if (checkSettings('reseller-client-dynamic-recharge') == 'enable' && in_array('dynamic-recharge', $permissions)) @else @if (($client->client_approval ?? '') == 'approved') @endif @endif @endif
ID Userid Name Expire Date Package Pop/Zone Address Mobile No
@php(printf('CID%04d', $client->id)) {{ $client->userid }} {{ $client->clients_name }} {{ date('d-M-Y', strtotime($client->expire_date)) }} @if (in_array('show-sub-package', $permissions) && ($client->subreseller ?? null) == 'yes') Sub Package: {{ $client->sub_package_name ?? '' }} @if (in_array('show-sub-package-rate', $permissions)) ({{ $client->sub_package_rate ?? '' }}) @endif @endif @if (in_array('show-mother-package', $permissions)) Package: {{ $client->package_name ?? '' }} @if (in_array('show-motherpackage-rate', $permissions)) ({{ $client->package_rate ?? '' }}) @endif @endif {{ $client->popname }} Flat No: {{ $client->flat_no ?? '' }} , Building Name: {{ $client->building_name ?? '' }} , Road No: {{ $client->road_no ?? '' }} , Block/Sector: {{ $client->block_sector ?? '' }} , Area : {{ $client->area ?? '' }}, Box : {{ $client->box ?? '' }} {{ $client->contact_no }}

{{ $page_title }}

@if($show_reseller_info) @endif @if($has_sub_reseller) @endif @foreach ($bill_history as $history) @if($show_reseller_info) @endif @if($has_sub_reseller) @endif @endforeach @if($show_reseller_info) @else @endif @if($has_sub_reseller) @endif
Delete DateReseller Log ID Reseller Cost Reseller ActionSub-Reseller Log ID Sub-Reseller Cost Sub-Reseller ActionRemarks Deleted by
@if(auth()->user()->hasPermissionTo('customer-recharge-delete') && $history->deleted_at == null)
@endif
{{ $history->created_at->format('d-M-Y h:i:sa') }}{{ $history->id }} {{ number_format($history->amount ?? 0, 2) }} {{ $history->action ?? '' }}{!! nl2br(e($history->sub_reseller_display ?? '—')) !!} {{ number_format($history->sub_reseller_cost ?? 0, 2) }} {!! nl2br(e($history->sub_reseller_actions ?? '—')) !!}{{ $history->remarks ?? '' }} @if($history->deleted_at) {{ $history->deletedByUser->name ?? 'N/A' }}
{{ $history->deleted_at->format('d-M-Y h:i') }} @endif
Total Reseller Cost {{ number_format($total_reseller_amount ?? 0, 2) }}Total Sub-Reseller Cost {{ number_format($total_sub_reseller_amount ?? 0, 2) }}
@endif @endsection