@extends('layouts.dashboard') @section('content')
Sr. No. | Name / URL | Action | Office Details | Price | Added On | Type | Hired From | Client Details | Attachments | Description |
---|---|---|---|---|---|---|---|---|---|---|
{{ ($projects->currentPage() - 1) * $projects->perPage() + $loop->iteration }} |
{{ $project->name_or_url }}
@if ($project->dashboard_url)
Dashboard Link
@endif
|
@php
$isAssigned = \App\Models\AssignedProject::where('project_id', $project->id)
->where('source_type', 'sale_team')
->exists();
$user = auth()->user();
$canAssign = !$isAssigned && (
($user->hasAnyRole(['Sales Team', 'Sales Team Manager']) && $user->id === $project->sales_person_id) ||
$user->hasRole('Project Manager') ||
$user->hasRole('Admin')
);
@endphp
@if ($canAssign)
✅ Assign
@endif
|
Sales: {{ $project->salesPerson->name ?? '-' }}
Department: {{ $project->department->name ?? '-' }}
Hired From Portal: {{ $project->hired_from_portal ?? '-' }}
Business Type: {{ $project->business_type ?? '-' }}
|
${{ $project->price_usd ?? '-' }} | {{ $project->created_at->format('d M, Y') }} | {{ $project->project_type ?? '-' }} | {{ $project->hiredFromProfile->name ?? '-' }} |
Type: {{ $project->client_type ?? '-' }}
Name: {{ $project->client_name ?? '-' }}
Email: {{ $project->client_email ?? '-' }}
Other Info:
@if($project->client_other_info)
{{ Str::limit($project->client_other_info, 40) }}
@else
-
@endif
Behaviour: {{ $project->client_behaviour ?? '-' }}
Contact Time: {{ $project->time_to_contact ?? '-' }}
Keywords: {{ $project->client_keywords ?? 'No' }}
Results Commitment: {{ $project->client_results_commitment ?? '-' }}
Content Commitment: {{ $project->result_commitment ?? 'No' }}
Loom Video: {{ $project->client_loom_video ?? 'No' }}
Website Speed:
@if($project->website_speed_included === 'Yes')
Yes
@else
No
@endif
|
@forelse ($project->attachments as $attachment) {{ basename($attachment->file_path) }} @empty No attachments @endforelse Add Attachment |
{!! nl2br(e($project->description ?? '-')) !!}
|
No projects found for the selected department. |