fix: style update for index-list of claims

This commit is contained in:
Noah Lancien 2025-12-08 11:55:45 +01:00
parent 8887aabac4
commit f7bac9c221

View file

@ -1,16 +1,19 @@
<table class="table table-hover table-fix-action m-0">
<thead class="border-top-0 border-start-0 border-end-0 border border-2">
@include('bo.modules.table-col-sorter', [
'cols' => [
@php
$cols = [
'reference' => str(__('validation.custom.reference'))->ucfirst(),
'created_at' => str(__('validation.attributes.created_at'))->ucfirst(),
'email' => str(__('models.classes.customers'))->ucfirst(),
'message' => str(__('validation.attributes.message'))->ucfirst(),
'brand_id' => str(__('models.classes.brands'))->singular()->ucfirst(),
'type' => str(__('validation.custom.type'))->ucfirst(),
'status' => str(__('validation.custom.status'))->ucfirst(),
'updated_at' => str(__('validation.attributes.updated_at'))->ucfirst(),
],
];
if (!request()->brand) {
$cols['brand_id'] = str(__('models.classes.brands'))->singular()->ucfirst();
}
$cols['status'] = str(__('validation.custom.status'))->ucfirst();
@endphp
@include('bo.modules.table-col-sorter', [
'cols' => $cols,
])
</thead>
<tbody>
@ -20,7 +23,7 @@
<td class="text-center align-middle">{{ $claimModel->reference }}</td>
<td class="text-center align-middle">
<span class="badge bg-secondary text-bg-secondary">
{{ $claimModel->created_at->isoFormat('LLLL') }}
{{ $claimModel->created_at->format('d/m/Y') }}
</span>
</td>
<td class="text-center align-middle">
@ -30,18 +33,12 @@
</div>
</td>
<td class="text-center align-middle">{{ $claimModel->message }}</td>
<td class="text-center align-middle">{{ $claimModel->brand->name }}</td>
<td class="text-center align-middle">
<x-bo.claims.enum-badge :claimModel="$claimModel" enum="type" />
</td>
@if (!request()->brand)
<td class="text-center align-middle">{{ $claimModel->brand->name }}</td>
@endif
<td class="text-center align-middle">
<x-bo.claims.enum-badge :claimModel="$claimModel" enum="status" />
</td>
<td class="text-center align-middle">
<span class="badge bg-secondary text-bg-secondary">
{{ $claimModel->updated_at->isoFormat('LLLL') }}
</span>
</td>
<td class="text-end align-middle">
@canAny(['preview', 'update'], $claimModel)
<div class="btn-group">