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

Sales Tracker Show

Inquiry No: {{ $inq_no }}

@foreach ($salesTracker as $data) {{-- {{ $data }} --}}
{{--
--}} {{--
@if ($najmadirectoryrevisions_userisnot->isEmpty()) @endif
@if ($najmadirectoryrevisions_userisnot->isEmpty()) @endif
@if ($najmadirectoryrevisions_userisnot->isEmpty()) @endif
--}} {{-- @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 --}} {{--
--}}
@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('salestracker_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

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