@extends('layouts.masterbeta') @section('page-title') Clients | {{ $showclient->name }} @endsection @section('breadcrumbs') @endsection @section('content')
{{ substr($showclient->name, 0, 2) }}

{{ $showclient->name }}

{{ $showclient->country ?? 'Unknown Location' }} {{ $showclient->company_type ?? 'N/A' }} @if($showclient->status == 'Live' || $showclient->status == 'active') Active @else {{ ucfirst($showclient->status) }} @endif
Company Profile
  • Industry {{ $showclient->industry ?? 'N/A' }}
  • Type {{ $showclient->type ?? 'N/A' }}
  • Acquisition {{ $showclient->how_we_got_client ?? 'N/A' }}
  • Date Added {{ $showclient->created_at ? \Carbon\Carbon::parse($showclient->created_at)->format('d M Y') : 'N/A' }}
Primary Contact
Contact Person
{{ $showclient->contact_person ?? 'N/A' }}
Phone Number
{{ $showclient->phone ?? 'N/A' }}
Skype
{{ $showclient->skype_name ?? 'N/A' }}
LinkedIn
{{ $showclient->linkedin_name ?? 'N/A' }}
Service & Billing
Subscribed Services
@php $services = json_decode($showclient->services, true) ?? []; @endphp @if(count($services) > 0) @foreach($services as $service) {{ $service }} @endforeach @else N/A @endif
Billing Mode
{{ $showclient->pay_mode ?? 'N/A' }}
Currency
{{ $showclient->currency ?? 'N/A' }}
Message Types
@php $msgTypes = json_decode($showclient->message_types, true) ?? []; @endphp @if(count($msgTypes) > 0) @foreach($msgTypes as $type) {{ $type }} @endforeach @else N/A @endif
Contract Details
  • Contract Type {{ $showclient->contract_type ?? 'N/A' }}
  • Auto Renew @if($showclient->contract_auto_renew == 'YES') Yes @else No @endif
  • Validity (Expiry) @if($showclient->contract_validity && $showclient->contract_validity != '1970-01-01 22:00:00') {{ \Carbon\Carbon::parse($showclient->contract_validity)->format('d M Y') }} @else N/A @endif
  • SMPP Username
    {{ $showclient->smpp_username ?? 'N/A' }}
Onboarding Progress
Current Stage
{{ $showclient->progress_indicator ?? 'N/A' }}
@php $score = $showclient->progress_indicator_score ?? 0; $scoreColor = $score >= 100 ? 'bg-success' : ($score >= 50 ? 'bg-primary' : 'bg-warning'); @endphp
Completion Score {{ $score }}%
Communications
@php function renderBadges($jsonString, $type = 'email') { $items = json_decode($jsonString, true) ?? []; if(count($items) === 0) return 'N/A'; $html = ''; foreach($items as $item) { $icon = $type == 'email' ? 'bi-envelope' : 'bi-telephone'; $html .= ''.$item.''; } return $html; } @endphp
Finance Emails
{!! renderBadges($showclient->finance_email, 'email') !!}
Support Emails
{!! renderBadges($showclient->support_emails, 'email') !!}
Rate Emails
{!! renderBadges($showclient->rate_emails, 'email') !!}
Support Phones
{!! renderBadges($showclient->support_phones, 'phone') !!}
@php $allCodes = collect($voice_codes)->concat($sms_codes)->concat($ussd_codes); @endphp @if($allCodes->count() > 0)
@foreach($allCodes as $code) @endforeach
Type Shortcode Network Status Expiry Date
{{ $code->code_type ?? 'N/A' }} {{ $code->shortcode ?? 'N/A' }} {{ $code->network ?? 'N/A' }} {{ $code->status ?? 'Active' }} {{ $code->expiry_date ? \Carbon\Carbon::parse($code->expiry_date)->format('d M Y') : 'N/A' }}
@else
No short codes assigned to this client.
@endif
@if(isset($recent_payments) && count($recent_payments) > 0)
@foreach($recent_payments as $payment) @endforeach
Invoice # Amount Date Status
{{ $payment->invoice_number ?? 'N/A' }} {{ number_format($payment->invoice_amount ?? 0, 2) }} {{ $payment->invoice_date ? \Carbon\Carbon::parse($payment->invoice_date)->format('d M Y') : 'N/A' }} {{ $payment->invoice_status ?? 'Pending' }}
@else
No payment records found.
@endif
@if(isset($showdocuments) && count($showdocuments) > 0)
@foreach($showdocuments as $file)
{{ $file->name }}
{{ $file->file_extension ?? 'file' }}
@if(!empty($file->file_path)) @endif
@endforeach
@else
No documents uploaded for this client.
@endif
Client Notes & Activity Logs
{{ count($show_notes) }} Entries
@if(isset($show_notes) && count($show_notes) > 0)
@foreach($show_notes as $note)
{{ $note->created_by_info->name ?? 'System User' }}
@if(isset($note->highlight) && $note->highlight == 'YES') Highlighted @endif
{{ \Carbon\Carbon::parse($note->created_at)->format('d M Y, h:i A') }}

{{ $note->notes_body ?? $note->note ?? $note->content ?? 'No content found' }}

@endforeach
@else
No notes recorded for this client yet.
@endif
@include('clients.partials.shortcode-payment-docs-modal') @endsection @section('scripts') @endsection