ldc-crm/resources/views/brands/index.blade.php
Jérémy Munsch 6987501a98 CRM API V2
2021-03-27 08:29:31 +01:00

28 lines
1.1 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 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::parse($brand->created_at)->format('d/m/Y à H:i') }}</td>
<td><a href="{{ route('manage-brand', $brand) }}" class="btn btn-sm btn-success">{{ __('Modifier') }}</a></td>
</tr>
@endforeach
</tbody>
</table>
@endsection