`name` varchar(200) NOT NULL DEFAULT '', `country` varchar(200) NOT NULL DEFAULT '', `contact_person` varchar(191) DEFAULT NULL, `contact_person_phone` varchar(25) DEFAULT NULL, `contact_person_email` varchar(191) DEFAULT NULL, `support_emails` text DEFAULT NULL, `finance_emails` text DEFAULT NULL, `support_skype` text DEFAULT NULL, `technical_support_person` varchar(191) DEFAULT NULL, `services` text DEFAULT NULL, `buying_rate` decimal(10,4) DEFAULT 0.0000, `rate_type` varchar(20) DEFAULT NULL, `payment_terms` varchar(20) DEFAULT NULL, `sliding_rate_file` text DEFAULT NULL, `connection_status` varchar(70) DEFAULT NULL, `connection_type` text DEFAULT NULL, `integration_type` text DEFAULT NULL, `bind_specifics` text DEFAULT NULL, `account_manager_id` int(11) DEFAULT NULL, `mno_account_manager` varchar(191) DEFAULT NULL, `contract_auto_renew` varchar(15) DEFAULT NULL, `contract_validity` varchar(191) DEFAULT NULL, `direct_business` varchar(10) DEFAULT 'YES', @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 @php $services = json_decode($showclient->services, true) ?? []; @endphp @php $msgTypes = json_decode($showclient->message_types, true) ?? []; @endphp {!! renderBadges($showclient->finance_email, 'email') !!}
{!! renderBadges($showclient->finance_email, 'email') !!}
{!! renderBadges($showclient->support_emails, 'email') !!}
{!! renderBadges($showclient->rate_emails, 'email') !!}
{!! renderBadges($showclient->support_phones, 'phone') !!}
Finance Emails
@if($showclient->finance_email !== null || $showclient->finance_email !== "")
finance_email) ?>
{!! renderBadges($showclient->finance_email, 'email') !!}
@endif
Support Emails
@if($showclient->support_emails !== null)
{!! renderBadges($showclient->support_emails, 'email') !!}
support_emails) ?>
@endif
Rate Emails
@if($showclient->rate_emails !== null)
rate_emails) ?>
{!! renderBadges($showclient->rate_emails, 'email') !!}
@endif
Support Phones
@if($showclient->support_phones !== null)
support_phones) ?>
{!! renderBadges($showclient->support_phones, 'phone') !!}
@endif
@php function renderBadges($items, $type = 'email') { if(gettype($items) == 'string') return ''.$items.''; elseif(count($items) === 0) return 'N/A'; $html = ''; foreach($items as $item) { $icon = $type == 'email' ? 'bi-envelope' : 'bi-telephone'; $html .= ''.$item.''; } return $html; } @endphp