36 lines
1.4 KiB
PHP
36 lines
1.4 KiB
PHP
@extends('layout.app')
|
|
|
|
@section('content')
|
|
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
|
|
<h2>Gestion des services <small class="text-muted">Liste</small></h2>
|
|
@if (session('success'))
|
|
<span class="text-success text-center">{!! session('success') !!}</span>
|
|
@endif
|
|
@if (session('error'))
|
|
<span class="text-danger text-center">{!! session('error') !!}</span>
|
|
@endif
|
|
<a href="{{ route('manage-service') }}" class="btn btn-sm btn-primary float-right">Ajouter</a>
|
|
</div>
|
|
<table class="table">
|
|
<thead>
|
|
<th>Nom</th>
|
|
<th>Marque</th>
|
|
<th>Date du token</th>
|
|
<th>Regénérer un token</th>
|
|
<th>Date de création</th>
|
|
<th></th>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($services as $service)
|
|
<tr>
|
|
<td>{{ $service->name }}</td>
|
|
<td>{{ $service->brand->name }}</td>
|
|
<td>{{ \Carbon\Carbon::parse($service->api_token_date)->format('d/m/Y à H:i') }}</td>
|
|
<td><a href="{{ route('generate-token-service', $service->id) }}" class="btn btn-sm btn-success">Générer</a></td>
|
|
<td>{{ \Carbon\Carbon::parse($service->created_at)->format('d/m/Y à H:i') }}</td>
|
|
<td><a href="{{ route('manage-service', $service->id) }}" class="btn btn-sm btn-success">Modifier</a></td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
@endsection
|