ldc-crm/resources/views/brands/index.blade.php
Vincent BRIDIER 973134eaf3 - Add stats brand view
- Add method removeOptInCustomer
2021-03-08 11:37:54 +01:00

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