ldc-gen-game-web/resources/views/pages/codes/search.blade.php
2023-12-19 12:31:29 +01:00

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') }}&nbsp;: <strong>{{ $code->code_unique }}</strong></dd>
<dd>{{ __('ID') }}&nbsp;: <strong>{{ $code->id }}</strong></dd>
<dd>{{ __('À atteint son nombre maximal d\'utilisation ?') }}&nbsp;:
<strong>
@if ($code->has_been_used_too_many_times)
{{ Str::ucfirst(__('oui')) }}
@else
{{ Str::ucfirst(__('non')) }}
@endif
</strong>
</dd>
<dd>{{ __('Exporté ?') }}&nbsp;:
<strong>
@if ($code->code_exported)
{{ Str::ucfirst(__('oui')) }}
@else
{{ Str::ucfirst(__('non')) }}
@endif
</strong>
</dd>
<dd>
{{ Str::ucfirst(__('validation.attributes.created_at')) }}&nbsp;:
<strong>{{ $code->date_creation->isoFormat('DD/MM/YYYY') }}</strong>
</dd>
<dd>{{ __('Nombre de fois utilisés') }}&nbsp;: <strong>{{ $used_counter }}</strong></dd>
</dl>
@endif
@endsection