Updated misc show blade
Updated misc show blade
This commit is contained in:
parent
9ce7bbd410
commit
829df33abd
|
@ -5,27 +5,34 @@
|
||||||
</x-slot>
|
</x-slot>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<x-card class="shadow mt-3">
|
<x-card class="shadow mt-3">
|
||||||
<x-back-button>
|
<div class="row">
|
||||||
<x-slot name="href">{{ route('misc.index') }}</x-slot>
|
<div class="col-12 col-md-6 mb-2">
|
||||||
Go back
|
<h2>{{ $service_extras[0]->name}}</h2>
|
||||||
</x-back-button>
|
</div>
|
||||||
|
<div class="col-12 col-md-6 text-md-end">
|
||||||
|
<h6 class="text-muted pe-lg-4">{{ $service_extras[0]->service_id }}</h6>
|
||||||
|
@if($service_extras[0]->active !== 1)
|
||||||
|
<h6 class="text-danger pe-lg-4">not active</h6>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12 col-lg-6">
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table table-borderless text-nowrap">
|
<table class="table table-borderless text-nowrap">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="px-4 py-2 font-bold">Service</td>
|
<td class="px-2 py-2 font-bold text-muted">Service</td>
|
||||||
<td>{{ $service_extras[0]->name }}</td>
|
<td>{{ $service_extras[0]->name }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="px-4 py-2 font-bold">Price</td>
|
<td class="px-2 py-2 font-bold text-muted">Price</td>
|
||||||
<td>{{ $service_extras[0]->price }} {{ $service_extras[0]->currency }}</td>
|
<td>{{ $service_extras[0]->price }} {{ $service_extras[0]->currency }}
|
||||||
|
<small>{{\App\Process::paymentTermIntToString($service_extras[0]->term)}}</small>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="px-4 py-2 font-bold">Term</td>
|
<td class="px-2 py-2 font-bold text-muted">Owned since</td>
|
||||||
<td>{{ \App\Process::paymentTermIntToString($service_extras[0]->term) }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="px-4 py-2 font-bold">Owned since</td>
|
|
||||||
<td>
|
<td>
|
||||||
@if(!is_null($service_extras[0]->owned_since))
|
@if(!is_null($service_extras[0]->owned_since))
|
||||||
{{ date_format(new DateTime($service_extras[0]->owned_since), 'jS F Y') }}
|
{{ date_format(new DateTime($service_extras[0]->owned_since), 'jS F Y') }}
|
||||||
|
@ -33,32 +40,40 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="px-4 py-2 font-bold">Next due date</td>
|
<td class="px-2 py-2 font-bold text-muted">Next due date</td>
|
||||||
<td>
|
<td>{{Carbon\Carbon::parse($service_extras[0]->next_due_date)->diffForHumans()}}
|
||||||
@if(!is_null($service_extras[0]->next_due_date))
|
({{Carbon\Carbon::parse($service_extras[0]->next_due_date)->format('d/m/Y')}})
|
||||||
{{ date_format(new DateTime($service_extras[0]->next_due_date), 'jS F Y') }}
|
|
||||||
@endif
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="px-4 py-2 font-bold">Created on</td>
|
<td class="px-2 py-2 font-bold text-muted">Inserted</td>
|
||||||
<td>
|
<td>
|
||||||
@if(!is_null($service_extras[0]->created_at))
|
@if(!is_null($service_extras[0]->created_at))
|
||||||
{{ date_format(new DateTime($service_extras[0]->created_at), 'jS F Y') }}
|
{{ date_format(new DateTime($service_extras[0]->created_at), 'jS M y g:i a') }}
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="px-4 py-2 font-bold">Last updated</td>
|
<td class="px-2 py-2 font-bold text-muted">Updated</td>
|
||||||
<td>
|
<td>
|
||||||
@if(!is_null($service_extras[0]->updated_at))
|
@if(!is_null($service_extras[0]->updated_at))
|
||||||
{{ date_format(new DateTime($service_extras[0]->updated_at), 'jS F Y') }}
|
{{ date_format(new DateTime($service_extras[0]->updated_at), 'jS M y g:i a') }}
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="{{ route('misc.index') }}"
|
||||||
|
class="btn btn-success btn-sm mx-2">
|
||||||
|
Go back
|
||||||
|
</a>
|
||||||
|
<a href="{{ route('misc.edit', $service_extras[0]->service_id) }}"
|
||||||
|
class="btn btn-primary btn-sm mx-2">
|
||||||
|
Edit
|
||||||
|
</a>
|
||||||
</x-card>
|
</x-card>
|
||||||
</div>
|
</div>
|
||||||
</x-app-layout>
|
</x-app-layout>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user