@extends('layouts.portal') @section('title', 'Rapor Detayı') @section('content')

{{ $report->client?->company_name }}

{{ ucfirst($report->report_type) }} raporu · {{ optional($report->date_from)->format('d.m.Y') }} - {{ optional($report->date_to)->format('d.m.Y') }}

Raporlara Dön

Dosyalar

@foreach(['pdf' => 'PDF İndir', 'excel' => 'Excel İndir', 'csv' => 'CSV İndir', 'html' => 'HTML İndir'] as $type => $label) @php $path = match($type) { 'pdf' => $report->pdf_path, 'excel' => $report->excel_path, 'csv' => $report->csv_path, 'html' => $report->html_path }; @endphp @if($report->fileExists($path)) {{ $label }} @else @endif @endforeach

Rapor Özeti

@if(is_array($report->summary) && count($report->summary))
@foreach($report->summary as $key => $value)
{{ ucwords(str_replace('_', ' ', $key)) }}
{{ is_numeric($value) ? number_format((float) $value, 2, ',', '.') : $value }}
@endforeach
@else

Bu raporda özet verisi bulunmuyor.

@endif

Gönderim Geçmişi

@forelse($report->emailLogs as $log) @empty @endforelse
KonuAlıcıDurumTarih
{{ $log->subject }} {{ implode(', ', $log->recipients ?? []) }} {{ $log->status }} {{ $log->sent_at ? $log->sent_at->format('d.m.Y H:i') : $log->created_at->format('d.m.Y H:i') }}
Bu rapor için mail gönderim kaydı yok.
@endsection