28 lines
1,014 B
PHP
28 lines
1,014 B
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 marques <small class="text-muted">Liste</small></h2>
|
|
<a href="{{ route('manage-brand') }}" class="btn btn-sm btn-primary float-right">Ajouter</a>
|
|
</div>
|
|
<table class="table">
|
|
<thead>
|
|
<th>Nom de la marque</th>
|
|
<th>Nombre de comptes</th>
|
|
<th>Nombre d'optins</th>
|
|
<th>Date d'ajout en base</th>
|
|
<th></th>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($brands as $brand)
|
|
<tr>
|
|
<td>{{ $brand->name }}</td>
|
|
<td>{{ $brand->accounts }}</td>
|
|
<td>{{ $brand->total_optins }}</td>
|
|
<td>{{ \Carbon\Carbon::parse($brand->created_at)->format('d/m/Y à H:i') }}</td>
|
|
<td><a href="{{ route('manage-brand', $brand->id) }}" class="btn btn-sm btn-success">Modifier</a></td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
@endsection
|