@extends('Users.app') @section('content')

Project Lead Management

Track customers and their multiple projects with deadline reminders

{{--
📅
--}}
Upcoming Projects
📥
{{ $upcommingProjects->count() }}
Click to view details
{{--
✅
--}}
Available Projects
📝
{{ $availableProjects->count() }}
Click to view details
{{--
⚠️
--}}
Overdue Projects
⏳
{{ $overDueProjects->count() }}
Click to view details
{{--
💰
--}}
Revenue
💰
${{ number_format($totalRevenewPaid, 2) }}
${{ number_format($totalRevenewDue, 2) }} pending
{{--
Recent Activity
Michael Chen - Research Proposal in-progress
Reminder sent Jan 20, 2024
$1,200
Due Jun 30, 2024
Sarah Johnson - Personal Statement Writing available
Created Jan 15, 2024
$500
Due Aug 15, 2024
Sarah Johnson - Personal Statement Writing upcomming
Created Jan 15, 2024
$500
Due Aug 15, 2024
Sarah Johnson - Personal Statement Writing upcomming
Created Jan 15, 2024
$500
Due Aug 15, 2024
--}}
{{-- --}}
Customers ({{ $realCustomers->count() }})
@if (count($realCustomers) == 0)
@else @foreach ($realCustomers as $realCustomer)
{{-- Customer project table can go here --}}
@foreach ($realCustomer->assignment as $singleAssignment) @php $today = \Carbon\Carbon::now(); $date = \Carbon\Carbon::parse($singleAssignment->date); $daysDiff = $today->diffInDays($date, false); // echo $daysDiff; if ($daysDiff < 0) { $bgColor = '#ED5353'; // red } elseif (abs($daysDiff) <= 10) { $bgColor = '#FFD700'; // yellow } else { $bgColor = '#808080'; // black } @endphp @php if($singleAssignment->order_id){ $orderFound = 'bg-success'; }else{ $orderFound = 'bg-danger'; } @endphp @endforeach
Topic Service Subject Deadline Available Date Order Status
{{ $singleAssignment->topic ?? 'Null' }} {{ $singleAssignment->service ?? 'Null' }} {{ $singleAssignment->subject ?? 'Null' }} {{ \Carbon\Carbon::parse($singleAssignment->date)->format('d M Y') ?? "Null"}} {{ \Carbon\Carbon::parse($singleAssignment->available_date)->format('d M Y') ?? "Null"}} {{ $singleAssignment->order_id ? "Converted" : 'Not Converted' }}
@endforeach @endif
dk
Upcoming Project
Available Project
Overdue Project
Payment Reminder Management
@csrf
@if (count($partialPaymentUsers) == 0)
@else @foreach ($partialPaymentUsers as $partialPaymentUser)
{{ $partialPaymentUser->topic }} {{ $partialPaymentUser->pay_status ?? null }}
{{ $partialPaymentUser->customer_name }} • {{ $partialPaymentUser->customer_email }} • {{ $partialPaymentUser->order_code }}
Total Amount: {{ $partialPaymentUser->curr_name }} {{ $partialPaymentUser->cost }} | Due Amount: {{ $partialPaymentUser->curr_name }} {{ $partialPaymentUser->due }}

@endforeach @endif
@php $events = []; foreach ($upcommingProjects as $project) { $events[] = [ 'title' => $project->topic ?? 'Null', 'start' => $project->date, 'color' => '#27718A', 'textColor' => '#ffffff', 'url' => url('customer/edit/' . $project->bd_leads->id ?? 1), ]; } foreach ($availableProjects as $project) { $events[] = [ 'title' => $project->topic ?? 'Null', 'start' => $project->date, 'color' => '#011014', 'textColor' => '#ffffff', 'url' => url('customer/edit/' . $project->bd_leads->id ?? 1), ]; } foreach ($overDueProjects as $project) { $events[] = [ 'title' => $project->topic ?? 'Null', 'start' => $project->date, 'color' => '#ED5353', 'textColor' => '#ffffff', 'url' => url('customer/edit/' . $project->bd_leads->id ?? 1 ), ]; } @endphp @endsection