@extends("website.layouts.layout") @section('title',"My Account") @section("body") Home Current Project @include("website.clients.includes.sidebar") My Projects Current Completed Cancelled @if(isset($currentJobs['success']['data']) && empty(!$currentJobs['success']['data'])) @foreach($currentJobs['success']['data'] as $jobs) @php $serviceProvider = $jobs['service_provider']; // Split the name into parts (e.g., first, middle, last) $nameParts = explode(' ', trim($serviceProvider)); // Get the first name $firstName = $nameParts[0] ?? ''; // Initialize last name initial as empty $lastNameInitial = ''; // Check if a second part exists and is not empty if (isset($nameParts[1]) && strlen(trim($nameParts[1])) > 0) { $lastNameInitial = strtoupper(trim($nameParts[1])[0]); } // Combine first name and the last name initial $displayName = $firstName . ' ' . $lastNameInitial; @endphp {{ $displayName }} #{{ $jobs['project_id'] }} {{$jobs['category_name']}} {{$jobs['category']}} {{date('D-M-d-Y', strtotime($jobs['schedule_date']))}} {{$jobs['apt_unit']}} {{$jobs['city']}} {{$jobs['state']}} {{$jobs['country']}} {{$jobs['project_address']}} {{$jobs['description']}} @endforeach @else No Current jobs available. @endif @endsection @section('footerItems') @endsection
#{{ $jobs['project_id'] }}
{{date('D-M-d-Y', strtotime($jobs['schedule_date']))}}
{{$jobs['apt_unit']}} {{$jobs['city']}} {{$jobs['state']}} {{$jobs['country']}} {{$jobs['project_address']}}
{{$jobs['description']}}
No Current jobs available.