feat: ✨ add hashcode column of single optins in index page #31
This commit is contained in:
parent
7b3193fa82
commit
9e3e855485
11 changed files with 26 additions and 41 deletions
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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'],
|
||||
])
|
||||
|
|
|
|||
|
|
@ -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'],
|
||||
])
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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'],
|
||||
])
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue