@extends('layouts.app') @section('title', 'Project Completion Rate Report') @section('content')
@if(session('success'))
{{ session('success') }}
@endif @if ($errors->any())
{!! implode('
', $errors->all(':message')) !!}
@endif

Total Completed Projects

{{ $projects->count() }}

Completed on Time

{{ $completed_on_time }}

Completed on Time Percentage

{{ number_format($percentage, 2) }}%

has('from')) onfocus="this.type='date'" onblur="if(this.value===''){this.type='text'}" @else type="date" @endif class="form-control bg-white" placeholder="From" name="from" value="@if(request()->has('from')){{request()->from}}@endif" />
has('to')) onfocus="this.type='date'" onblur="if(this.value===''){this.type='text'}" @else type="date" @endif class="form-control bg-white" placeholder="To" name="to" value="@if(request()->has('to')){{request()->to}}@endif" />
@if(!request()->has('from'))

Showing results from past 90 days.

@endif
@foreach($projects as $project) @endforeach
Reference Project Title Client Start Date End Date Status View
WG-{{str_pad($project->id, 4, '0', STR_PAD_LEFT)}} {{ !empty($project->title) ? $project->title : 'Untitled' }} {{ $project->company_name }} {{ date('jS M Y', strtotime($project->created_at)) }} {{ date('jS M Y', strtotime($project->completion_date)) }} @if($project->complete_status=='on_time') On Time @else Late @endif
@endsection @section('js') @endsection