@extends('layouts.admin') @section('page-title', 'Projects') @section('content')
Track progress, status and quotes for every project
| Quote No | Project | Client | Status | Factory Progress | Closure Date | Tonnage | Final Quote | Action |
|---|---|---|---|---|---|---|---|---|
| @if($project->quotation) {{ strtoupper(substr($project->quotation->state_code ?? '', 0, 2)) }}-{{ \Carbon\Carbon::parse($project->quotation->created_at)->format('y') }}-{{ str_pad($project->quotation->id ?? 0, 3, '0', STR_PAD_LEFT) }} @else — @endif | {{-- Project Title --}}
{{ $project->title }}
|
{{-- Client with Avatar --}}
{{ $project->client_name }}
|
{{-- Status --}}
{{ ucfirst($project->status) }} | {{-- Progress --}}
{{ $prog }}%
|
{{-- Closure Date --}}
@if($project->expected_closure_date)
@php
$closure = \Carbon\Carbon::parse($project->expected_closure_date);
$overdue = $closure->isPast() && strtolower($project->status) !== 'completed';
@endphp
{{ $closure->format('d M Y') }}
@if($overdue)
Overdue
@else
{{ $closure->diffForHumans() }}
@endif
@else
—
@endif
|
{{-- Tonnage --}}
{{ $project->tonnage ? $project->tonnage . ' T' : '—' }} | {{-- Final Quote --}}@if($project->final_quote_value) ₹{{ number_format($project->final_quote_value, 0) }} @else — @endif | {{-- Actions --}}|