@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
{{-- Tombol Kembali --}}
{{-- ═══════════════════ SUMMARY STATISTICS ═══════════════════ --}}
Total Training

{{ number_format($total_training) }}

Total Cost

Rp {{ number_format($total_cost, 0, ',', '.') }}

Average Cost

Rp {{ number_format($avg_cost, 0, ',', '.') }}

@if($trainings->count() > 0) {{-- ═══════════════════ GRAFIK COST BY TRAINER ═══════════════════ --}}
Cost by Trainer Chart
{{-- ═══════════════════ SUMMARY BY TRAINER ═══════════════════ --}}
Summary by Trainer
@foreach($trainer_cost_summary as $index => $trainer) @endforeach
No Trainer Name Total Training Total Cost Average Cost
{{ $index + 1 }} {{ $trainer->trainer_name }} {{ $trainer->total_training }} Rp {{ number_format($trainer->total_cost, 0, ',', '.') }} Rp {{ number_format($trainer->avg_cost, 0, ',', '.') }}
{{-- ═══════════════════ DETAIL DATA TRAINING COST ═══════════════════ --}}
Training Cost Details

@foreach($trainings as $index => $training) @endforeach
No Training Name Trainer Name Cost
{{ $index + 1 }} {{ $training->nama_trn }} {{ $training->trainer_name }} Rp {{ number_format($training->biaya, 0, ',', '.') }}
@else {{-- No Data Message --}}
@endif
@endsection @push('css') @endpush @push('js') @endpush