added baki lelong and rugi lelong

This commit is contained in:
hafifierahman
2025-08-31 21:56:32 +08:00
parent 4c4dbe18c6
commit 2a8f3a1655
3 changed files with 77 additions and 3 deletions
@@ -0,0 +1,29 @@
@props([
'title' => '',
'subtitle' => '',
'icon' => '',
'iconState' => 'info',
'cardBackgroundState' => 'white',
'link' => '#',
])
<div class="col-xl-3 col-lg-6" >
<div class="card card-stats mb-4 mb-xl-0 {{ 'bg-'.$cardBackgroundState}}">
<div class="card-body">
<div class="row">
<div class="col">
<h6 class="card-title text-uppercase mb-0 {{ $cardBackgroundState == 'white' ? 'text-muted' : 'text-white' }}">{{ $title }}</h6>
<span class="h5 font-weight-bold mb-0 {{ $cardBackgroundState == 'white' ? 'text-black' : 'text-white' }}">{{ $subtitle }}</span>
</div>
<div class="col-auto text-center">
<a href="{{ $link }}">
<div class="icon icon-shape bg-{{ $iconState }} rounded-circle shadow text-center">
<i class="{{ $icon }}"></i>
</div>
</a>
<br>
</div>
</div>
</div>
</div>
</div>
+15
View File
@@ -90,6 +90,21 @@
@endif
<br>
<div class="d-flex justify-content-center mb-4">
<x-dashboard-card-small
title="Baki Lelong"
:subtitle="number_format($customerLelong['bakilelong'] ?? 0, 2)"
icon="fas fa-chart-bar"
iconState="danger"
/>
<x-dashboard-card-small
title="Rugi Lelong"
:subtitle="number_format($customerLelong['rugilelong'] ?? 0, 2)"
icon="fas fa-chart-bar"
iconState="warning"
/>
</div>
@if (request()->get('filter') == 'pembiayaan-akan-dilelong')
<x-dashboard-notification>
<x-dashboard-notification.item content="1. Sekiranya Lelongan Anda Dalam Tempoh Kontrak Lanjutan (Mencapai 12 Bulan), Urusan Penebusan Hanya Dibenarkan Di Kaunter Cawangan Selewatnya-lewatnya 3 Hari Sebelum Tarikh Lelong." />