first commit
This commit is contained in:
40
resources/views/reporting_cycles/index.blade.php
Normal file
40
resources/views/reporting_cycles/index.blade.php
Normal file
@@ -0,0 +1,40 @@
|
||||
@extends('layouts.app')
|
||||
@section('title', 'Kitaran Pelaporan')
|
||||
@section('heading', 'Kitaran Pelaporan')
|
||||
@section('page-title', 'Kitaran Pelaporan / Pembaharuan Lesen')
|
||||
|
||||
@section('actions')
|
||||
<a href="{{ route('reporting-cycles.create') }}" class="btn btn-success"><i class="bi bi-plus-lg me-1"></i> Cipta Kitaran</a>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="alert alert-light border small">
|
||||
<i class="bi bi-info-circle me-1"></i> Peraturan: <strong>Tahun pelaporan = Tahun pembaharuan − 2</strong>. Contoh: pembaharuan 2028 ⇒ pelaporan 2026 (data Jan–Dis 2026). Pembaharuan lesen dibuat pada/sebelum tarikh tutup (lalai 1 Disember).
|
||||
</div>
|
||||
<div class="card"><div class="card-body p-0">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover align-middle mb-0">
|
||||
<thead><tr><th class="ps-3">Tahun Pembaharuan</th><th>Tahun Pelaporan</th><th>Tempoh Pelaporan</th><th>Tarikh Tutup</th><th>Tempoh Lesen</th><th>Serahan</th><th>Status</th><th></th></tr></thead>
|
||||
<tbody>
|
||||
@forelse ($cycles as $c)
|
||||
<tr>
|
||||
<td class="ps-3 fw-semibold">{{ $c->renewal_year }}</td>
|
||||
<td>{{ $c->reporting_year }}</td>
|
||||
<td class="small">{{ $c->period_start?->format('d/m/Y') }} – {{ $c->period_end?->format('d/m/Y') }}</td>
|
||||
<td>{{ $c->cut_off_date?->format('d/m/Y') }} @if($c->isOverdue())<span class="badge bg-danger">Lampau</span>@endif</td>
|
||||
<td>{{ $c->licence_period_year }} tahun</td>
|
||||
<td><span class="badge bg-light text-dark">{{ $c->submissions_count }}</span></td>
|
||||
<td><span class="badge bg-{{ $c->status==='aktif'?'success':'secondary' }}">{{ $c->status==='aktif'?'Aktif':'Tutup' }}</span></td>
|
||||
<td class="text-end pe-3">
|
||||
<a href="{{ route('reporting-cycles.edit', $c) }}" class="btn btn-sm btn-outline-secondary"><i class="bi bi-pencil"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr><td colspan="8" class="text-center text-muted py-3">Tiada kitaran lagi.</td></tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div></div>
|
||||
<div class="mt-2">{{ $cycles->links() }}</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user