@extends('layouts.guest') @include('layouts.profilestyle') @section('content')

Customer Care Tracker Show

{{--

Add Employee

--}}
@foreach ($customercaretrackers as $data)
{{--
--}}
@php $x = 0; @endphp @foreach ($najmadirectoryrevisions_userisnot as $najma_nec) @php $x++; @endphp @php // start name format change $name = $najma_nec->newpersonname; // Split the name into parts $prefix = substr($name, 0, 2); // Get first two characters $suffix = substr($name, -2); // Get last two characters $masked = $prefix . str_repeat('*', strlen($name) - 4) . $suffix; // end name format change // start mobile number format change $phoneNumber = $najma_nec->newcontactno; $prefix = substr($phoneNumber, 0, 2); // Get the first two characters (prefix) $suffix = substr($phoneNumber, -2); // Get the last two characters (suffix) // Mask the middle digits with asterisks $maskedPhoneNumber = $prefix . str_repeat('*', strlen($phoneNumber) - 4) . $suffix; // end mobile number format change // start email format change $email = $najma_nec->newemail; // Split the email into username and domain parts list($username, $domain) = explode('@', $email); $maskedUsername = substr($username, 0, 2) . str_repeat('*', strlen($username) - 3) . substr($username, -1); $maskedEmail = $maskedUsername . '@' . $domain; @endphp @if ($najmadirectoryrevisions_userid == Auth::user()->id) @else @can('customercaretracker_showncr') @else @endcan @endif @endforeach @if ($coordinator == Auth::user()->id) @if (!empty($data->personname)) @endif @if (!empty($data->contactno)) @endif @if (!empty($data->email)) @endif @if (!empty($data->email) || !empty($data->contactno) || !empty($data->email)) @endif @else @if (!empty($maskedone) || !empty($phoneonone) || !empty($maskedEmailone)) @endif @endif
Contact Person Name Contact Number Contact Email Action

*** Customer Care Tracker ***

{{-- @foreach ($data->Customercaretrackeralldata as $item) --}}
{{-- @endforeach --}}
@endforeach
@endsection