feat: ✨ add hashcode column of single optins in index page #31

This commit is contained in:
Alexis Gousseau 2025-01-08 12:59:04 +01:00
parent 7b3193fa82
commit 9e3e855485
11 changed files with 26 additions and 41 deletions

View file

@ -2,8 +2,7 @@
@section('title', __('Édition d\'un :model', ['model' => __('models.classes.activity_log')]))
@section('description', __('Édition d\'un :model déjà existant', ['model' => __('models.classes.activity_log')]))
@section('breadcrumb',
request()->route()->getName())
@section('breadcrumb', request()->route()->getName())
@section('content')
<div class="d-flex justify-content-between flex-md-nowrap align-items-center flex-wrap pb-3">

View file

@ -3,8 +3,7 @@
@section('title', sprintf('%s - %s', __('models.classes.answers'), Str::ucfirst(__('création'))))
@section('description', __('Création d\'une :model', ['model' => __('models.classes.answers')]))
@section('metaIndex', 'noindex,nofollow')
@section('breadcrumb',
request()->route()->getName())
@section('breadcrumb', request()->route()->getName())
@section('content')
<div class="card border-0">

View file

@ -3,8 +3,7 @@
@section('title', sprintf('%s - %s', __('models.classes.answers'), Str::ucfirst(__('édition'))))
@section('description', __('Édition d\'une :model', ['model' => __('models.classes.answers')]))
@section('metaIndex', 'noindex,nofollow')
@section('breadcrumb',
request()->route()->getName())
@section('breadcrumb', request()->route()->getName())
@section('content')
<div class="card border-0">

View file

@ -1,14 +1,11 @@
<div class="table-responsive">
<table class="table-hover fix-action m-0 table">
<thead class="border-top-0 border-start-0 border-end-0 border border-2">
@php
$cols = [
@include('bo.modules.table-col-sorter', [
'cols' => [
'answer' => __('Réponse'),
'updated_at' => __('Date d\'ajout en base'),
];
@endphp
@include('bo.modules.table-col-sorter', [
'cols' => $cols,
],
'mobileHide' => ['status'],
'ignore' => ['updated_at'],
])

View file

@ -1,16 +1,13 @@
<div class="table-responsive">
<table class="table-hover fix-action m-0 table">
<thead class="border-top-0 border-start-0 border-end-0 border border-2">
@php
$cols = [
@include('bo.modules.table-col-sorter', [
'cols' => [
'name' => __('Nom'),
'status' => __('Nombre de comptes'),
'optin' => __('Nombre d\'optins'),
'updated_at' => __('Date d\'ajout en base'),
];
@endphp
@include('bo.modules.table-col-sorter', [
'cols' => $cols,
],
'mobileHide' => ['status'],
'ignore' => ['status', 'optin', 'updated_at'],
])

View file

@ -3,8 +3,7 @@
@section('title', sprintf('%s - %s', __('models.classes.customers'), Str::ucfirst(__('aperçu'))))
@section('description', __('Aperçu d\'un :model', ['model' => __('models.classes.customers')]))
@section('metaIndex', 'noindex,nofollow')
@section('breadcrumb',
request()->route()->getName())
@section('breadcrumb', request()->route()->getName())
@section('content')
<div class="card border-0">

View file

@ -1,14 +1,15 @@
<div class="table-responsive">
<table class="table-hover table text-center">
<thead class="border-top-0 border-start-0 border-end-0 border border-2">
@php
$cols = [
@include('bo.modules.table-col-sorter', [
'cols' => [
'question' => __('Question'),
'brand_id' => __('Marque'),
'answers' => __('Réponses'),
];
@endphp
@include('bo.modules.table-col-sorter', ['cols' => $cols, 'mobileHide' => ['status'], 'ignore' => ['answers']])
],
'mobileHide' => ['status'],
'ignore' => ['answers']
])
</thead>
<tbody>
@if (count($questionModels))

View file

@ -1,17 +1,14 @@
<div class="table-responsive">
<table class="table-hover fix-action m-0 table">
<thead class="border-top-0 border-start-0 border-end-0 border border-2">
@php
$cols = [
@include('bo.modules.table-col-sorter', [
'cols' => [
'name' => __('Nom'),
'brand_id' => __('Marque'),
'bearer_token_date' => __('Date du Bearer token'),
'generateToken' => __('Regénerer un token'),
'created_at' => __('Date de création'),
];
@endphp
@include('bo.modules.table-col-sorter', [
'cols' => $cols,
],
'mobileHide' => ['status'],
'ignore' => ['generateToken'],
])

View file

@ -1,15 +1,13 @@
<div class="table-responsive">
<table class="table-hover fix-action m-0 table">
<thead class="border-top-0 border-start-0 border-end-0 border border-2">
@php
$cols = [
@include('bo.modules.table-col-sorter', [
'cols' => [
'hashcode' => __('Hashcode'),
'email' => __('E-mail'),
'brand_id' => __('Marque'),
'created_at' => __('Date opt-in'),
];
@endphp
@include('bo.modules.table-col-sorter', [
'cols' => $cols,
],
'mobileHide' => ['status'],
'ignore' => ['status', 'optin', 'updated_at'],
])
@ -18,6 +16,7 @@
@if ($singleoptinModels->count())
@foreach ($singleoptinModels as $singleoptinModel)
<tr>
<td class="text-center align-middle">{{ $singleoptinModel->hashcode }}</td>
<td class="text-center align-middle">{{ $singleoptinModel->email }}</td>
<td class="text-center align-middle">{{ $singleoptinModel->brand->name }}</td>
<td class="text-center align-middle">

View file

@ -2,8 +2,7 @@
@section('title', __('Création d\'un :model', ['model' => __('models.classes.user')]))
@section('description', __('Création d\'un tout nouveau :model', ['model' => __('models.classes.user')]))
@section('breadcrumb',
request()->route()->getName())
@section('breadcrumb', request()->route()->getName())
@section('content')
<div class="d-flex justify-content-between flex-md-nowrap align-items-center flex-wrap pb-3">

View file

@ -2,8 +2,7 @@
@section('title', __('Édition d\'un :model', ['model' => __('models.classes.user')]))
@section('description', __('Édition d\'un :model déjà existant', ['model' => __('models.classes.user')]))
@section('breadcrumb',
request()->route()->getName())
@section('breadcrumb', request()->route()->getName())
@section('content')
<div class="d-flex justify-content-between flex-md-nowrap align-items-center flex-wrap pb-3">