Files
ilycats/storage/framework/views/03f43b28d394d7c94fbe70e77947a441.php
T
2026-09-23 12:45:02 +07:00

167 lines
12 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php if (isset($component)) { $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54 = $attributes; } ?>
<?php $component = App\View\Components\AppLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('app-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\AppLayout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<div class="max-w-[1200px] mx-auto pb-16 px-6 space-y-8 font-sans antialiased tracking-tight">
<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 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]">Basis Data Pembiakan Resmi</p>
</div>
</div>
<div class="flex items-center gap-4">
<div class="bg-white px-5 py-3 rounded-2xl border border-slate-200 shadow-sm flex items-center gap-4">
<div class="text-right">
<p class="text-[8px] text-slate-400 font-black uppercase tracking-widest">Total Record</p>
<p class="text-lg font-black text-slate-800 leading-none"><?php echo e($mattings->total()); ?></p>
</div>
<div class="w-10 h-10 bg-indigo-50 text-indigo-600 rounded-xl flex items-center justify-center text-sm shadow-inner">
<i class="fas fa-database"></i>
</div>
</div>
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('check-access', ['matting_reports', 'create'])): ?>
<a href="<?php echo e(request()->fullUrlWithQuery(['export' => 'pdf'])); ?>" class="bg-slate-900 px-6 py-3 rounded-2xl text-[10px] font-black text-white uppercase hover:bg-indigo-600 transition-all shadow-lg flex items-center gap-3">
<i class="fas fa-file-pdf"></i> PDF Export
</a>
<?php endif; ?>
</div>
</div>
<form action="<?php echo e(route('admin.reports.matting.index')); ?>" method="GET" class="bg-white p-4 rounded-[1.5rem] border border-slate-200 shadow-sm grid grid-cols-1 md:grid-cols-4 lg:grid-cols-6 gap-4 items-end">
<div class="space-y-1">
<label class="text-[9px] font-black text-slate-400 uppercase ml-2">Ancestry Search</label>
<input type="text" name="parent_name" value="<?php echo e(request('parent_name')); ?>" placeholder="Sire/Dam Name..." class="w-full bg-slate-50 border-none rounded-xl text-xs font-bold py-3">
</div>
<div class="space-y-1">
<label class="text-[9px] font-black text-slate-400 uppercase ml-2">Breed</label>
<select name="ras" class="w-full bg-slate-50 border-none rounded-xl text-xs font-bold py-3">
<option value="">All Breeds</option>
<?php $__currentLoopData = $breeds; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $breed): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($breed); ?>" <?php echo e(request('ras') == $breed ? 'selected' : ''); ?>><?php echo e($breed); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</div>
<div class="space-y-1 lg:col-span-2">
<label class="text-[9px] font-black text-slate-400 uppercase ml-2">Registry (Hold Ctrl to select multiple)</label>
<select name="registry[]" multiple class="w-full bg-slate-50 border-none rounded-xl text-xs font-bold py-2 h-[42px] focus:h-auto transition-all">
<?php $__currentLoopData = $registries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $reg): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($reg); ?>" <?php echo e(is_array(request('registry')) && in_array($reg, request('registry')) ? 'selected' : ''); ?>><?php echo e($reg); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</div>
<div class="space-y-1">
<label class="text-[9px] font-black text-slate-400 uppercase ml-2">Start Date</label>
<input type="date" name="start_date" value="<?php echo e(request('start_date')); ?>" class="w-full bg-slate-50 border-none rounded-xl text-xs font-bold py-3">
</div>
<button type="submit" class="bg-indigo-600 h-[42px] text-white rounded-xl text-[10px] font-black uppercase hover:bg-slate-900 transition-all shadow-md">Apply Filter</button>
</form>
<div class="space-y-4">
<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">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">Akses</div>
</div>
<?php $__empty_1 = true; $__currentLoopData = $mattings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $matting): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
<div class="bg-white border border-slate-200 rounded-[2rem] p-5 hover:border-indigo-400 hover:shadow-xl hover:shadow-indigo-50/50 transition-all group relative overflow-hidden">
<span class="absolute -right-2 -bottom-4 text-7xl font-black text-slate-50 italic group-hover:text-indigo-50/50 transition-colors select-none z-0">
<?php echo e(substr($matting->pic->name ?? 'S', 0, 1)); ?>
</span>
<div class="grid grid-cols-1 lg:grid-cols-12 gap-6 items-center relative z-10">
<div class="lg:col-span-5 flex items-center gap-6 min-w-0">
<div class="flex -space-x-4 shrink-0">
<img src="<?php echo e($matting->sire && $matting->sire->foto ? asset('storage/' . $matting->sire->foto) : asset('images/default-cat.png')); ?>"
class="w-12 h-12 rounded-[1rem] border-4 border-white shadow-md object-cover transform group-hover:-rotate-6 transition-transform">
<img src="<?php echo e($matting->dam && $matting->dam->foto ? asset('storage/' . $matting->dam->foto) : asset('images/default-cat.png')); ?>"
class="w-12 h-12 rounded-[1rem] border-4 border-white shadow-md object-cover transform group-hover:rotate-6 transition-transform">
</div>
<div class="min-w-0 flex-1">
<h4 class="text-sm font-black text-slate-800 uppercase truncate leading-tight mb-1">
<?php echo e($matting->sire->nama_kucing ?? 'N/A'); ?> <span class="text-slate-300 mx-1">×</span> <?php echo e($matting->dam->nama_kucing ?? 'N/A'); ?>
</h4>
<div class="flex items-center gap-3">
<span class="text-[8px] font-black text-indigo-600 bg-indigo-50 px-2 py-0.5 rounded tracking-widest leading-none">#<?php echo e($matting->id); ?></span>
<span class="text-[10px] text-slate-400 font-bold uppercase tracking-tighter leading-none"><?php echo e($matting->registry ?? 'No Registry'); ?></span>
</div>
</div>
</div>
<div class="lg:col-span-3 flex items-center justify-around border-y lg:border-y-0 lg:border-x border-slate-100 py-3 lg:py-0 px-4">
<div class="text-center">
<p class="text-[8px] text-slate-400 font-black uppercase mb-1 tracking-widest">Offspring</p>
<p class="text-[13px] font-black text-slate-800 leading-none"><?php echo e($matting->kittens_count); ?> <span class="text-[10px] text-slate-300 font-bold uppercase ml-0.5">Paws</span></p>
</div>
<div class="text-center">
<p class="text-[8px] text-slate-400 font-black uppercase mb-1 tracking-widest">Date</p>
<p class="text-[11px] font-black text-slate-800 leading-none"><?php echo e($matting->tgl_kawin_awal->format('d/m/Y')); ?></p>
</div>
</div>
<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">
<?php echo e($matting->pic->name ?? 'Sistem Admin'); ?>
</p>
</div>
<div class="lg:col-span-2 flex justify-end shrink-0">
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('check-access', ['matting_reports', 'read'])): ?>
<a href="<?php echo e(route('admin.reports.matting.show', $matting->id)); ?>" class="w-full lg:w-auto px-6 py-3 bg-slate-900 text-white text-[10px] font-black uppercase rounded-2xl hover:bg-indigo-600 transition-all shadow-md flex items-center justify-center gap-2 group-hover:scale-105">
<i class="fas fa-certificate"></i> View Record
</a>
<?php endif; ?>
</div>
</div>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
<?php endif; ?>
</div>
<div class="pt-8 flex justify-center">
<?php echo e($mattings->links()); ?>
</div>
</div>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $attributes = $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $component = $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?><?php /**PATH /home/u806112658/domains/earrinasia.com/ilycats/resources/views/pages/reports/matting/index.blade.php ENDPATH**/ ?>