@extends('layout.app') @section('content') @php($permissions = userPermissions()) @if($client)
| 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 }} |
| Delete | Date | @if($show_reseller_info)Reseller Log ID | Reseller Cost | Reseller Action | @endif @if($has_sub_reseller)Sub-Reseller Log ID | Sub-Reseller Cost | Sub-Reseller Action | @endifRemarks | Deleted by | |
|---|---|---|---|---|---|---|---|---|---|---|
|
@if(auth()->user()->hasPermissionTo('customer-recharge-delete') && $history->deleted_at == null)
|
{{ $history->created_at->format('d-M-Y h:i:sa') }} | @if($show_reseller_info){{ $history->id }} | {{ number_format($history->amount ?? 0, 2) }} | {{ $history->action ?? '' }} | @endif @if($has_sub_reseller){!! nl2br(e($history->sub_reseller_display ?? '—')) !!} | {{ number_format($history->sub_reseller_cost ?? 0, 2) }} | {!! nl2br(e($history->sub_reseller_actions ?? '—')) !!} | @endif{{ $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) }} | @else@endif @if($has_sub_reseller) | Total Sub-Reseller Cost | {{ number_format($total_sub_reseller_amount ?? 0, 2) }} | @endif||||||