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

Sales Tracker Edit

Inquiry No: {{ $inq_no }}

@csrf @foreach ($salestracker as $data) {{-- --}}
@error('datecontracted')
{{ $message }}
@enderror
@error('companyname')
{{ $message }}
@enderror
{{--
@if ($najmadirectoryrevisions_userisnot->isEmpty()) @endif @error('personname')
{{ $message }}
@enderror
@if ($najmadirectoryrevisions_userisnot->isEmpty()) @endif @error('contactno')
{{ $message }}
@enderror
@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 @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