@extends('layouts.dashboard') @section('content')
Payment Details Project Monthly Report
Project price
${{ number_format($project->price, 2) }}
Received Moneys
${{ number_format($receivedMoney, 2) }}
Estimated Hours
{{ $project->estimated_hours ?? 0 }} hrs
Spent Hours
{{ $spentHours ?? 0 }} hrs

Project Details

Name or URL: {{ $project->name_or_url }}
Description: {!! nl2br(e($project->description)) !!}
Project Grade: {{ $project->project_grade }}
Business Type: {{ $project->business_type }}
Project Type: {{ $project->project_type }}
@php $statusColors = [ 'complete' => 'text-success', 'working' => 'text-success', 'hold' => 'text-warning', 'paused' => 'text-primary', 'issues' => 'text-danger', 'temp hold' => 'text-orange-600', 'closed' => 'text-muted', ]; $statusRaw = $project->project_status ?? 'working'; $status = strtolower(trim($statusRaw)); $statusClass = $statusColors[$status] ?? 'text-secondary'; @endphp
Report Type: {{ $project->report_type }}
Client Type: {{ $project->client_type }}
Status: {{ ucfirst($statusRaw) }}
Category: {{ $project->projectCategory->cat_name ?? '-' }}
Sub Category: {{ $project->projectSubCategory->cat_name ?? '-' }}
Country: {{ $project->country->name ?? '-' }}
Project Manager: {{ $project->projectManager->name ?? '-' }}
Sales Person: {{ $project->salesPerson->name ?? '-' }}
Department: {{ $project->department->name ?? '-' }}
Assigned Employee: {{ $project->assignMainEmployee->name ?? '-' }}
Price (USD): ${{ $project->price ?? '0' }}
Estimated Hours: {{ $project->estimated_hours ?? 'N/A' }}
Client Name: {{ $project->client_name }}
Client Email: {{ $project->client_email }}
Client Other Info: {{ $project->client_other_info }}
Project Status: {{ $project->project_status }}

Work Reports

@if($dsrs->isEmpty())
No work reports found for this project.
@else
@foreach($dsrs as $dsr) @endforeach
Employee Work Description Date Hours
{{ $dsr->user->name ?? '-' }} {!! nl2br(e($dsr->work_description)) !!} {{ $dsr->created_at ? $dsr->created_at->format('d M Y') : '-' }} {{ $dsr->hours ?? 0 }}
@endif
@endsection