49 lines
1.9 KiB
PHP
49 lines
1.9 KiB
PHP
@extends('back::layout')
|
|
|
|
@section('title',
|
|
Str::of(__('validation.custom.unique_code'))->plural()->ucfirst() .
|
|
' - ' .
|
|
__('Recherche'))
|
|
@section('description', __('Rechercher des codes uniques'))
|
|
|
|
@section('content')
|
|
<div class="d-flex justify-content-between flex-md-nowrap align-items-center mb-3 flex-wrap">
|
|
@include('modules.breadcrumbs.breadcrumb-body')
|
|
</div>
|
|
@can('search', \App\Models\Code::class)
|
|
@include('back::pages.codes.search-form')
|
|
@endcan
|
|
<hr>
|
|
@if (!$code)
|
|
<span class="h4">{{ __('Veuillez entrer un code ci-dessus pour en obtenir les informations.') }}</span>
|
|
@else
|
|
<dl class="d-inline-block border p-3">
|
|
<dt><span class="h4">{{ __('Voici l\'état du code trouvé') }}</span></dt>
|
|
<dd>{{ __('Code') }} : <strong>{{ $code->code_unique }}</strong></dd>
|
|
<dd>{{ __('ID') }} : <strong>{{ $code->id }}</strong></dd>
|
|
<dd>{{ __('À atteint son nombre maximal d\'utilisation ?') }} :
|
|
<strong>
|
|
@if ($code->has_been_used_too_many_times)
|
|
{{ Str::ucfirst(__('oui')) }}
|
|
@else
|
|
{{ Str::ucfirst(__('non')) }}
|
|
@endif
|
|
</strong>
|
|
</dd>
|
|
<dd>{{ __('Exporté ?') }} :
|
|
<strong>
|
|
@if ($code->code_exported)
|
|
{{ Str::ucfirst(__('oui')) }}
|
|
@else
|
|
{{ Str::ucfirst(__('non')) }}
|
|
@endif
|
|
</strong>
|
|
</dd>
|
|
<dd>
|
|
{{ Str::ucfirst(__('validation.attributes.created_at')) }} :
|
|
<strong>{{ $code->date_creation->isoFormat('DD/MM/YYYY') }}</strong>
|
|
</dd>
|
|
<dd>{{ __('Nombre de fois utilisés') }} : <strong>{{ $used_counter }}</strong></dd>
|
|
</dl>
|
|
@endif
|
|
@endsection
|