@extends('layout.master') @push('plugin-styles') @endpush @section('content')

PPM Files Management

Manage and review all PPM files uploaded by users.

{{ $files->count() }}
Total Files
{{ $files->where('status', 'completed')->count() }}
Completed
{{ $files->where('status', 'in_progress')->count() }}
In Progress
{{ $files->where('status', 'outstanding')->count() }}
Outstanding
Filter PPM Files
@if(session('success')) @endif @if(session('error')) @endif
@if($files->isEmpty())
No PPM Files Found

No PPM files have been uploaded yet. Files will appear here once users start uploading them.

@else

All PPM Files

@foreach($files as $file) @endforeach
# File Name Tag No Location Work Order Type Upload Date Status Description Actions
{{ $loop->iteration }}
{{ $file->file_name }}
{{ $file->crane->tag_no ?? 'N/A' }} {{ $file->crane->platform ?? 'N/A' }} {{ $file->work_order }} {{ str_replace('-', ' ', $file->ppmtype) }} {{ $file->upload_date->format('d M Y') }} {{ ucfirst(str_replace('_', ' ', $file->status)) }} {{ Str::limit($file->description, 30) }}
@csrf @method('DELETE')
@endif
@endsection @push('plugin-scripts') @endpush @push('custom-scripts') @endpush