@extends('layouts.app') @section('title', 'Production Reports') @section('subtitle', 'Production analytics and performance reports') @section('content')
All Productions Dashboard

Total Productions

{{ number_format($reportData['total_productions']) }}

Completed

{{ number_format($reportData['completed_productions']) }}

Target Quantity

{{ number_format($reportData['total_target_quantity'], 2) }}

Actual Quantity

{{ number_format($reportData['total_actual_quantity'], 2) }}

Production by Type

@foreach($reportData['productions_by_type'] as $type => $count)
{{ ucfirst(str_replace('_', ' ', $type)) }}
{{ $count }}
@endforeach

Production by Status

@foreach($reportData['productions_by_status'] as $status => $count)
{{ ucfirst(str_replace('_', ' ', $status)) }}
{{ $count }}
@endforeach

Cost Analysis

Total Estimated Cost ${{ number_format($reportData['total_estimated_cost'], 2) }}
Total Actual Cost ${{ number_format($reportData['total_actual_cost'], 2) }}

Average Efficiency

{{ number_format($reportData['average_efficiency'], 1) }}%

Overall Production Efficiency

Production Details

@forelse($productions as $production) @empty @endforelse
Code Name Type Status Target Actual Efficiency Cost
{{ $production->production_code }}
{{ $production->production_name }}
{{ ucfirst(str_replace('_', ' ', $production->type)) }} {{ ucfirst(str_replace('_', ' ', $production->status)) }} {{ $production->target_quantity ? number_format($production->target_quantity, 2) : '-' }} {{ $production->actual_quantity ? number_format($production->actual_quantity, 2) : '-' }} {{ $production->efficiency_percentage ? number_format($production->efficiency_percentage, 1) . '%' : '-' }} {{ $production->actual_cost ? '$' . number_format($production->actual_cost, 2) : ($production->estimated_cost ? '$' . number_format($production->estimated_cost, 2) : '-') }}

No production data found

Adjust your date filters or create some productions.

@endsection