@extends('layouts.master') @section('superadmin')

Marketing Inquiry Show

{{--

Inquiry No: {{ $inquiryno }}

--}}
@foreach ($marketinginquiry as $data)
@if (!$najmadirectoryrevisions_userisnot->isEmpty()) @foreach ($najmadirectoryrevisions_userisnot as $najmadirectoryrevisions_user) @php // start name format change $name = $najmadirectoryrevisions_user->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 = $najmadirectoryrevisions_user->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 = $najmadirectoryrevisions_user->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
@endforeach @endif @if (!$najmadirectoryrevisions->isEmpty()) @foreach ($najmadirectoryrevisions as $najmadirectoryrevision)
@endforeach @endif
@endforeach
@endsection