initial commit

This commit is contained in:
2026-09-23 12:45:02 +07:00
parent d16f454083
commit 507fc6ccdf
235 changed files with 19587 additions and 2835 deletions
+61 -50
View File
@@ -5,14 +5,14 @@
<div class="flex flex-col md:flex-row justify-between items-center gap-6 bg-white p-8 rounded-[3rem] border border-slate-100 shadow-sm">
<div>
<h1 class="text-3xl font-black text-slate-800 tracking-tighter uppercase leading-none">
Intelligence <span class="text-indigo-600">Center</span>
Pusat <span class="text-indigo-600">Laporan</span>
</h1>
<p class="text-[10px] text-slate-400 font-bold uppercase tracking-[0.3em] mt-2">
Laporan: {{ strtoupper(str_replace('_', ' ', $module)) }}
</p>
</div>
{{-- PROTEKSI EXPORT: Hanya muncul jika memiliki izin 'create' pada modul reports --}}
{{-- HAK AKSES EKSPOR: Hanya muncul jika memiliki izin 'create' pada modul reports --}}
@can('check-access', ['reports', 'create'])
<div class="flex items-center gap-3">
{{-- Export PDF --}}
@@ -31,7 +31,7 @@
@endcan
</div>
{{-- 2. ADVANCED FILTER PANEL (TETAP UTUH) --}}
{{-- 2. PANEL FILTER --}}
<div class="bg-white rounded-[3rem] border border-slate-100 shadow-sm p-8">
<form action="{{ route('admin.reports.index') }}" method="GET" class="grid grid-cols-1 md:grid-cols-4 gap-8">
@@ -53,9 +53,9 @@
{{-- PIC & Period --}}
<div class="space-y-3">
<label class="block text-[10px] font-black text-slate-400 uppercase tracking-widest ml-2">Staff & Periode</label>
<label class="block text-[10px] font-black text-slate-400 uppercase tracking-widest ml-2">PIC & Periode</label>
<select name="pic_id" class="w-full bg-slate-50 border-none rounded-2xl text-xs font-bold">
<option value="">Semua PIC Staff</option>
<option value="">Semua PIC</option>
@foreach($users as $user)
<option value="{{ $user->id }}" {{ request('pic_id') == $user->id ? 'selected' : '' }}>{{ $user->name }}</option>
@endforeach
@@ -67,29 +67,28 @@
</div>
{{-- Status Filter --}}
<div class="space-y-3">
<label class="block text-[10px] font-black text-slate-400 uppercase tracking-widest ml-2">Status Analitik</label>
<select name="status" class="w-full bg-slate-50 border-none rounded-2xl text-xs font-bold">
<option value="">Semua Kondisi / Status</option>
@if($module == 'cats')
{{-- Perbaikan: Pastikan value ini ditangkap di Controller --}}
<option value="sehat" {{ request('status') == 'sehat' ? 'selected' : '' }}>Sehat (Healthy)</option>
<option value="sakit" {{ request('status') == 'sakit' ? 'selected' : '' }}>Dalam Perawatan (Treatment)</option>
@elseif(in_array($module, ['vaccine', 'deworming', 'flea', 'grooming']))
<option value="not_set" {{ request('status') == 'not_set' ? 'selected' : '' }}>Date Not Set</option>
<option value="overdue" {{ request('status') == 'overdue' ? 'selected' : '' }}>Overdue (Terlewat)</option>
<option value="soon" {{ request('status') == 'soon' ? 'selected' : '' }}>Akan Datang (7 Hari)</option>
@elseif(in_array($module, ['medicine', 'food', 'supplies']))
<option value="critical" {{ request('status') == 'critical' ? 'selected' : '' }}>Stok Kritis (< 5)</option>
<option value="expired" {{ request('status') == 'expired' ? 'selected' : '' }}>Sudah Expired</option>
<option value="safe" {{ request('status') == 'safe' ? 'selected' : '' }}>Stok Aman</option>
@endif
</select>
<button type="submit" class="w-full bg-indigo-600 text-white py-3 rounded-2xl text-[10px] font-black uppercase tracking-widest hover:bg-slate-900 shadow-xl shadow-indigo-100 transition-all">
<i class="fas fa-filter mr-2"></i> Apply Filter
</button>
</div>
<div class="space-y-3">
<label class="block text-[10px] font-black text-slate-400 uppercase tracking-widest ml-2">Status Analitik</label>
<select name="status" class="w-full bg-slate-50 border-none rounded-2xl text-xs font-bold">
<option value="">Semua Kondisi / Status</option>
@if($module == 'cats')
<option value="sehat" {{ request('status') == 'sehat' ? 'selected' : '' }}>Sehat (Sehat)</option>
<option value="sakit" {{ request('status') == 'sakit' ? 'selected' : '' }}>Dalam Perawatan (Perawatan)</option>
@elseif(in_array($module, ['vaccine', 'deworming', 'flea', 'grooming']))
<option value="not_set" {{ request('status') == 'not_set' ? 'selected' : '' }}>Date Not Set</option>
<option value="overdue" {{ request('status') == 'overdue' ? 'selected' : '' }}>Overdue (Terlewat)</option>
<option value="soon" {{ request('status') == 'soon' ? 'selected' : '' }}>Akan Datang (7 Hari)</option>
@elseif(in_array($module, ['medicine', 'food', 'supplies']))
<option value="critical" {{ request('status') == 'critical' ? 'selected' : '' }}>Stok Kritis (< 5)</option>
<option value="expired" {{ request('status') == 'expired' ? 'selected' : '' }}>Sudah Expired</option>
<option value="safe" {{ request('status') == 'safe' ? 'selected' : '' }}>Stok Aman</option>
@endif
</select>
<button type="submit" class="w-full bg-indigo-600 text-white py-3 rounded-2xl text-[10px] font-black uppercase tracking-widest hover:bg-slate-900 shadow-xl shadow-indigo-100 transition-all">
<i class="fas fa-filter mr-2"></i> Apply Filter
</button>
</div>
{{-- Summary & Reset --}}
<div class="flex flex-col justify-between">
@@ -105,7 +104,7 @@
</form>
</div>
{{-- 3. DATA TABLE (TETAP UTUH) --}}
{{-- 3. DATA TABLE --}}
<div class="bg-white rounded-[3rem] border border-slate-100 shadow-sm overflow-hidden">
<div class="overflow-x-auto">
<table class="w-full text-left">
@@ -113,23 +112,28 @@
<tr>
<th class="p-6 text-[10px] font-black text-slate-400 uppercase tracking-widest">Informasi Utama</th>
<th class="p-6 text-[10px] font-black text-slate-400 uppercase tracking-widest">Detail Data</th>
<th class="p-6 text-[10px] font-black text-slate-400 uppercase tracking-widest">Staff & Jadwal</th>
<th class="p-6 text-[10px] font-black text-slate-400 uppercase tracking-widest">PIC & Jadwal</th>
<th class="p-6 text-[10px] font-black text-slate-400 uppercase tracking-widest text-right">Status Aktif</th>
</tr>
</thead>
<tbody class="divide-y divide-slate-50">
@forelse($results as $item)
@php
$dateCol = match($module) {
'cats' => 'tanggal_lahir',
'vaccine' => 'jadwal_vaksin',
'deworming' => 'jadwal_obat_cacing',
'flea' => 'jadwal_obat_kutu',
'grooming' => 'jadwal_grooming',
'medicine', 'food', 'supplies' => 'expired_date',
default => 'created_at'
};
$dateValue = $item->{$dateCol};
$dateValue = null;
// PENGISIAN DATEVALUE KHUSUS SELAIN KUCING
// Kucing tidak butuh dateValue untuk kolom status
if ($module !== 'cats') {
$dateCol = match($module) {
'vaccine' => 'jadwal_vaksin',
'deworming' => 'jadwal_obat_cacing',
'flea' => 'jadwal_obat_kutu',
'grooming' => 'jadwal_grooming',
'medicine', 'food', 'supplies' => 'expired_date',
default => 'created_at'
};
$dateValue = $item->{$dateCol};
}
@endphp
<tr class="group hover:bg-slate-50/30 transition-all">
<td class="p-6">
@@ -150,15 +154,26 @@
</td>
<td class="p-6">
<div class="flex flex-col gap-1">
<span class="text-[10px] font-black text-slate-600 uppercase">{{ $item->pic->name ?? 'System' }}</span>
<span class="text-[10px] font-black text-slate-600 uppercase">{{ $item->pic->name ?? 'Sistem' }}</span>
<span class="text-[9px] font-bold text-slate-400 italic">
<i class="far fa-calendar-alt mr-1"></i> {{ $dateValue ? \Carbon\Carbon::parse($dateValue)->format('d/m/Y') : 'DATE NOT SET' }}
{{-- PROTEKSI TANGGAL DI KOLOM STAFF & JADWAL --}}
<i class="far fa-calendar-alt mr-1"></i>
@if($module === 'cats')
{{ $item->updated_at ? \Carbon\Carbon::parse($item->updated_at)->format('d/m/Y') : 'DATE NOT SET' }}
@else
{{ ($dateValue && strtotime($dateValue)) ? \Carbon\Carbon::parse($dateValue)->format('d/m/Y') : 'DATE NOT SET' }}
@endif
</span>
</div>
</td>
<td class="p-6 text-right">
@if(in_array($module, ['vaccine', 'deworming', 'flea', 'grooming']))
@if(empty($dateValue))
{{-- PROTEKSI TANGGAL DI KOLOM STATUS AKTIF --}}
@if($module === 'cats')
<span class="px-3 py-1.5 {{ $item->treatment_status == 1 ? 'bg-amber-100 text-amber-600' : 'bg-emerald-100 text-emerald-600' }} rounded-lg text-[8px] font-black uppercase">
{{ $item->treatment_status == 1 ? 'Perawatan' : 'Sehat' }}
</span>
@elseif(in_array($module, ['vaccine', 'deworming', 'flea', 'grooming']))
@if(empty($dateValue) || !strtotime($dateValue))
<span class="px-3 py-1.5 bg-slate-100 text-slate-400 rounded-lg text-[8px] font-black uppercase">Date Not Set</span>
@elseif(\Carbon\Carbon::parse($dateValue)->isPast())
<span class="px-3 py-1.5 bg-rose-100 text-rose-600 rounded-lg text-[8px] font-black uppercase animate-pulse">Overdue</span>
@@ -168,17 +183,13 @@
<span class="px-3 py-1.5 bg-emerald-100 text-emerald-600 rounded-lg text-[8px] font-black uppercase">Scheduled</span>
@endif
@elseif(in_array($module, ['medicine', 'food', 'supplies']))
@if(isset($item->expired_date) && \Carbon\Carbon::parse($item->expired_date)->isPast())
@if(!empty($item->expired_date) && strtotime($item->expired_date) && \Carbon\Carbon::parse($item->expired_date)->isPast())
<span class="px-3 py-1.5 bg-rose-600 text-white rounded-lg text-[8px] font-black uppercase">Expired</span>
@elseif($item->qty < 5)
@elseif(isset($item->qty) && $item->qty < 5)
<span class="px-3 py-1.5 bg-rose-100 text-rose-600 rounded-lg text-[8px] font-black uppercase">Low Stock</span>
@else
<span class="px-3 py-1.5 bg-slate-100 text-slate-500 rounded-lg text-[8px] font-black uppercase">Safe</span>
@endif
@else
<span class="px-3 py-1.5 {{ $item->riwayat_sakit_terakhir ? 'bg-amber-100 text-amber-600' : 'bg-emerald-100 text-emerald-600' }} rounded-lg text-[8px] font-black uppercase">
{{ $item->riwayat_sakit_terakhir ? 'Treatment' : 'Healthy' }}
</span>
@endif
</td>
</tr>
@@ -4,10 +4,10 @@
{{-- 1. HEADER --}}
<div class="flex flex-col lg:flex-row items-center justify-between gap-6">
<div class="text-center lg:text-left">
<h2 class="text-2xl font-black text-slate-900 uppercase tracking-tighter leading-none">Lineage Archive</h2>
<h2 class="text-2xl font-black text-slate-900 uppercase tracking-tighter leading-none">Lineage Arsip</h2>
<div class="flex items-center justify-center lg:justify-start gap-2 mt-2">
<span class="w-8 h-0.5 bg-indigo-600"></span>
<p class="text-[10px] text-slate-400 font-bold uppercase tracking-[0.2em]">Official Breeding Database</p>
<p class="text-[10px] text-slate-400 font-bold uppercase tracking-[0.2em]">Basis Data Pembiakan Resmi</p>
</div>
</div>
@@ -69,10 +69,10 @@
<div class="space-y-4">
{{-- Legend Header --}}
<div class="hidden lg:grid grid-cols-12 px-10 py-1 text-[9px] font-black text-slate-400 uppercase tracking-[0.2em]">
<div class="col-span-5">Breeding Partnership</div>
<div class="col-span-5">Pasangan Induk</div>
<div class="col-span-3 text-center">Record Statistics</div>
<div class="col-span-2 text-center">Registrar PIC</div>
<div class="col-span-2 text-right">Access</div>
<div class="col-span-2 text-right">Akses</div>
</div>
@forelse($mattings as $matting)
@@ -120,7 +120,7 @@
<div class="lg:col-span-2 flex flex-col items-center lg:items-start px-4 min-w-0">
<p class="text-[8px] text-slate-400 font-black uppercase mb-1.5 tracking-widest">Registrar</p>
<p class="text-[11px] font-bold text-slate-600 uppercase italic truncate w-full text-center lg:text-left tracking-tight">
{{ $matting->pic->name ?? 'System Admin' }}
{{ $matting->pic->name ?? 'Sistem Admin' }}
</p>
</div>
@@ -33,8 +33,8 @@
</head>
<body>
<div class="header">
<h1>ILY CATTERY - STRATEGIC BREEDING REPORT</h1>
<p>PARENTAL LINEAGE & ANALYTICS REPORT</p>
<h1>ILY CATTERY - LAPORAN PEMBIAKAN</h1>
<p>LAPORAN SILSILAH INDUK</p>
</div>
<table class="meta">
@@ -44,7 +44,7 @@
</tr>
<tr>
<td>TOTAL DATA: {{ count($data) }} RECORDS</td>
<td style="text-align: right">SISTEM: ILYCATS MANAGEMENT UNIT</td>
<td style="text-align: right">SISTEM: SISTEM ILYCATS</td>
</tr>
</table>
@@ -131,7 +131,7 @@
</table>
<div style="margin-top: 30px; font-size: 7px; text-align: center; color: #94a3b8;">
Laporan ini dihasilkan secara otomatis oleh IlyCats Management System. Segala data silsilah telah diverifikasi sesuai standar Registry (ICA/CFA/WCF).
Laporan ini dihasilkan secara otomatis oleh IlyCats Management Sistem. Segala data silsilah telah diverifikasi sesuai standar Registry (ICA/CFA/WCF).
</div>
</body>
</html>
@@ -11,7 +11,7 @@
</a>
<div class="h-8 w-px bg-slate-100"></div>
<div>
<h2 class="text-[14px] font-black text-slate-800 uppercase tracking-tighter leading-none">Lineage Archive</h2>
<h2 class="text-[14px] font-black text-slate-800 uppercase tracking-tighter leading-none">Lineage Arsip</h2>
<p class="text-[8px] text-slate-400 font-bold uppercase tracking-[0.3em] mt-1.5 italic">Official Record #{{ $matting->id }}</p>
</div>
</div>
@@ -0,0 +1,161 @@
{{-- resources/views/pages/reports/medical_history.blade.php --}}
<div style="font-family: Helvetica, Arial, sans-serif; color: #334155;">
{{-- Header Utama --}}
<div style="text-align: center; border-bottom: 2px solid #4f46e5; padding-bottom: 15px; margin-bottom: 20px;">
<h1 style="margin:0; font-size: 24px; color: #0f172a; letter-spacing: 1px;">LAPORAN KESEHATAN: {{ strtoupper($cat->nama_kucing) }}</h1>
<p style="margin:5px 0; font-size: 10px; color: #64748b; letter-spacing: 2px;">SISTEM MANAJEMEN ILY AREGAU CATTERY</p>
</div>
{{-- Document Metadata (Informasi Unduh & Total Record) --}}
<div style="background-color: #f8fafc; border: 1px solid #e2e8f0; padding: 15px; margin-bottom: 30px; border-radius: 8px; font-size: 11px;">
<table style="width: 100%; border-collapse: collapse;">
<tr>
<td style="width: 50%; vertical-align: top;">
<p style="margin: 4px 0;"><strong style="color: #4f46e5;">Cat Name:</strong> {{ $cat->nama_kucing }}</p>
<p style="margin: 4px 0;"><strong style="color: #4f46e5;">Breed / Gender:</strong> {{ $cat->ras }} / {{ $cat->jenis_kelamin }}</p>
<p style="margin: 4px 0;"><strong style="color: #4f46e5;">Microchip:</strong> {{ $cat->microchip ?? 'Unchipped' }}</p>
</td>
<td style="width: 50%; vertical-align: top; text-align: right;">
<p style="margin: 4px 0;"><strong style="color: #4f46e5;">Dicetak oleh:</strong> {{ auth()->user()->name ?? 'Sistem Administrator' }}</p>
<p style="margin: 4px 0;"><strong style="color: #4f46e5;">Timestamp:</strong> {{ \Carbon\Carbon::now()->translatedFormat('d F Y, H:i') }} WIB</p>
{{-- FIX: Menambahkan Klinis Log ke dalam Judul Metadata --}}
<p style="margin: 4px 0;">
<strong style="color: #4f46e5;">Summary Records:</strong> <br>
{{ $cat->medicalRecords->count() }} Catatan rutin •
<span style="color: #e11d48; font-weight: bold;">{{ $cat->treatments->count() }} Klinis Log</span> •
{{ $cat->weightHistories->count() }} Berat Log
</p>
</td>
</tr>
</table>
</div>
{{-- SECTION 1: ROUTINE MEDICAL LEDGER (Vaksin, Obat Cacing, dll) --}}
@foreach(['Vaccine', 'Deworming', 'Flea Perawatan', 'Grooming'] as $type)
@php $records = $cat->medicalRecords->where('type', $type)->sortByDesc('date_given'); @endphp
<div style="margin-top: 25px;">
<div style="background: #e0e7ff; padding: 8px 12px; border-left: 4px solid #4f46e5; font-weight: bold; font-size: 11px; margin-bottom: 8px; color: #3730a3;">
{{ strtoupper($type) }} HISTORY ({{ $records->count() }} Data)
</div>
<table style="width: 100%; border-collapse: collapse; font-size: 10px;">
<thead>
<tr style="background: #4f46e5; color: white;">
<th style="padding: 8px; text-align: left; border: 1px solid #4f46e5; width: 15%;">DATE GIVEN</th>
<th style="padding: 8px; text-align: left; border: 1px solid #4f46e5; width: 30%;">PRODUCT / TREATMENT</th>
<th style="padding: 8px; text-align: left; border: 1px solid #4f46e5; width: 40%;">NOTES</th>
<th style="padding: 8px; text-align: center; border: 1px solid #4f46e5; width: 15%;">NEXT SCHEDULE</th>
</tr>
</thead>
<tbody>
@forelse($records as $r)
<tr style="background: {{ $loop->even ? '#f8fafc' : '#ffffff' }};">
<td style="padding: 8px; border: 1px solid #e2e8f0;">{{ $r->date_given->format('d/m/Y') }}</td>
<td style="padding: 8px; border: 1px solid #e2e8f0; font-weight: bold;">
{{ $r->treatment_name }}
@if($r->dosage) <br><span style="font-size: 8px; color: #059669; font-weight: normal;">Dose: {{ $r->dosage }} {{ $r->unit }}</span> @endif
</td>
<td style="padding: 8px; border: 1px solid #e2e8f0; font-style: italic;">{{ $r->notes ?? '-' }}</td>
<td style="padding: 8px; border: 1px solid #e2e8f0; text-align: center;">{{ $r->next_schedule?->format('d/m/Y') ?? '-' }}</td>
</tr>
@empty
<tr><td colspan="4" style="padding: 10px; text-align: center; color: #94a3b8; border: 1px solid #e2e8f0;">No routine records.</td></tr>
@endforelse
</tbody>
</table>
</div>
@endforeach
{{-- SECTION 2: CLINICAL CASE HISTORY (Data Perawatan) --}}
<div style="margin-top: 35px;">
<div style="background: #fff1f2; padding: 8px 12px; border-left: 4px solid #e11d48; font-weight: bold; font-size: 11px; margin-bottom: 8px; color: #9f1239;">
CLINICAL CASE & TREATMENT HISTORY ({{ $cat->treatments->count() }} Data)
</div>
<table style="width: 100%; border-collapse: collapse; font-size: 10px;">
<thead>
<tr style="background: #e11d48; color: white;">
<th style="padding: 8px; text-align: left; border: 1px solid #e11d48; width: 15%;">DATE</th>
<th style="padding: 8px; text-align: left; border: 1px solid #e11d48; width: 25%;">DIAGNOSIS / KELUHAN</th>
<th style="padding: 8px; text-align: left; border: 1px solid #e11d48; width: 25%;">THERAPY (MEDICINE)</th>
<th style="padding: 8px; text-align: left; border: 1px solid #e11d48; width: 35%;">STATUS & RESOLUTION</th>
</tr>
</thead>
<tbody>
@forelse($cat->treatments->sortByDesc('tanggal') as $t)
<tr style="background: {{ $loop->even ? '#fff1f2' : '#ffffff' }}; vertical-align: top;">
<td style="padding: 8px; border: 1px solid #fecdd3;">{{ $t->tanggal->format('d/m/Y') }}</td>
<td style="padding: 8px; border: 1px solid #fecdd3;">
<strong style="color: #be123c;">{{ $t->keluhan }}</strong><br>
<span style="font-size: 9px; color: #64748b;">{{ $t->diagnosa }}</span>
</td>
<td style="padding: 8px; border: 1px solid #fecdd3;">
{{-- Menggunakan relasi medicine atau nama kolom asli sesuai database --}}
<strong>{{ $t->nama_obat ?? ($t->medicine ? $t->medicine->nama_obat : '-') }}</strong><br>
<span style="font-size: 9px;">Dosis/Qty: {{ $t->dosis ?? $t->qty_used }}</span>
</td>
<td style="padding: 8px; border: 1px solid #fecdd3;">
{{-- BLOK BARU: STATUS DAN REMARK PASCA SAKIT --}}
@if($t->status_perawatan == 2)
<div style="color: #059669; font-weight: bold; margin-bottom: 4px;">✓ RESOLVED (SEMBUH)</div>
@if($t->remark_pasca_sakit)
<div style="font-style: italic; font-size: 9px; color: #475569;">
"{{ $t->remark_pasca_sakit }}"
</div>
@endif
@else
<div style="color: #e11d48; font-weight: bold; margin-bottom: 4px;">⚠ ONGOING TREATMENT</div>
@endif
@if($t->keterangan)
<div style="margin-top: 6px; font-size: 9px; border-top: 1px dashed #fecdd3; padding-top: 4px;">
<strong style="color: #94a3b8;">Initial Notes:</strong> {{ $t->keterangan }}
</div>
@endif
</td>
</tr>
@empty
<tr><td colspan="4" style="padding: 10px; text-align: center; color: #94a3b8; border: 1px solid #fecdd3;">No clinical cases found.</td></tr>
@endforelse
</tbody>
</table>
</div>
{{-- SECTION 3: WEIGHT HISTORY --}}
@if($cat->weightHistories->count() > 0)
<div style="page-break-before: auto; margin-top: 35px;">
<div style="background: #ecfdf5; padding: 8px 12px; border-left: 4px solid #10b981; font-weight: bold; font-size: 11px; margin-bottom: 8px; color: #065f46;">
GROWTH & WEIGHT DALAM PROSES ({{ $cat->weightHistories->count() }} Data)
</div>
<table style="width: 100%; border-collapse: collapse; font-size: 10px;">
<thead>
<tr style="background: #10b981; color: white;">
<th style="padding: 8px; text-align: left; border: 1px solid #10b981;">DATE RECORDED</th>
<th style="padding: 8px; text-align: center; border: 1px solid #10b981;">WEIGHT (KG)</th>
<th style="padding: 8px; text-align: center; border: 1px solid #10b981;">PROGRESSION</th>
</tr>
</thead>
<tbody>
@php $wLogs = $cat->weightHistories->sortByDesc('created_at')->values(); @endphp
@foreach($wLogs as $index => $weight)
@php
$trend = '-';
$trendColor = '#64748b';
if (isset($wLogs[$index + 1])) {
$prev = (float)$wLogs[$index + 1]->berat;
$curr = (float)$weight->berat;
if ($curr > $prev) { $trend = 'Naik'; $trendColor = '#059669'; }
elseif ($curr < $prev) { $trend = 'Turun'; $trendColor = '#e11d48'; }
else { $trend = 'Stable'; }
}
@endphp
<tr style="background: {{ $loop->even ? '#ecfdf5' : '#ffffff' }};">
<td style="padding: 8px; border: 1px solid #d1fae5;">{{ $weight->created_at->format('d M Y, H:i') }}</td>
<td style="padding: 8px; border: 1px solid #d1fae5; text-align: center; font-weight: bold;">{{ $weight->berat }} Kg</td>
<td style="padding: 8px; border: 1px solid #d1fae5; text-align: center; font-weight: bold; color: {{ $trendColor }};">{{ $trend }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
@endif
</div>
@@ -28,7 +28,7 @@
<body>
<div class="header">
<h1>ILY CATTERY - INTELLIGENCE REPORT</h1>
<h1>ILY CATTERY - LAPORAN</h1>
<p>MODUL: {{ strtoupper($module) }} | UNIT ANALYTICS SYSTEM</p>
</div>
@@ -87,7 +87,7 @@
<td>{{ $item->tanggal_lahir ? \Carbon\Carbon::parse($item->tanggal_lahir)->format('d/m/Y') : '-' }}</td>
<td>
<span class="badge {{ $item->riwayat_sakit_terakhir ? 'bg-amber' : 'bg-green' }}">
{{ $item->riwayat_sakit_terakhir ? 'In Treatment' : 'Healthy' }}
{{ $item->riwayat_sakit_terakhir ? 'In Perawatan' : 'Sehat' }}
</span>
</td>
@@ -133,7 +133,7 @@
</table>
<div class="footer">
Ily Cattery Intelligence System - Dokumen Sah Dihasilkan Secara Otomatis
Ily Cattery Informasi Sistem - Dokumen Sah Dihasilkan Secara Otomatis
</div>
</body>