108 lines
6.5 KiB
PHP
108 lines
6.5 KiB
PHP
@extends('bo.layout', ['brParam' => $professionModel])
|
|
|
|
@section('title', __('Aperçu d\'une :model', ['model' => __('models.classes.profession')]))
|
|
@section('description', __('Aperçu d\'une :model déjà existante', ['model' => __('models.classes.profession')]))
|
|
@section('breadcrumb', request()->route()->getName())
|
|
|
|
@section('content')
|
|
<div class="d-flex justify-content-between flex-md-nowrap align-items-center border-bottom flex-wrap pb-3">
|
|
<div class="d-flex align-items-start flex-row">
|
|
<a class="btn btn-primary text-decoration-none m-0" data-bs-toggle="tooltip" data-bs-placement="top"
|
|
href="{{ route('bo.professions.index', ['sort_col' => 'created_at', 'sort_way' => 'desc']) }}"
|
|
title="{{ __('crud.helpers.list_all', ['model' => str(__('models.classes.profession'))->plural()]) }}">
|
|
<i class="fa-solid fa-arrow-left"></i>
|
|
</a>
|
|
@include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $professionModel])
|
|
</div>
|
|
@canAny(['duplicate', 'update', 'delete'], $professionModel)
|
|
<form class="btn-group confirmActionTS" data-message="{{ __('crud.sweetalert.data_lost') }}"
|
|
action="{{ route('bo.professions.destroy', $professionModel) }}" method="POST" novalidate>
|
|
@can('duplicate', $professionModel)
|
|
<a class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-placement="top"
|
|
href="{{ route('bo.professions.duplicate', ['profession' => $professionModel]) }}"
|
|
title="{{ __('crud.helpers.duplicate_model', ['model' => __('models.classes.profession')]) }}">
|
|
<i class="fa-solid fa-copy"></i>
|
|
</a>
|
|
@endcan
|
|
@can('update', $professionModel)
|
|
<a class="btn btn-primary" data-bs-toggle="tooltip" data-bs-placement="top"
|
|
href="{{ route('bo.professions.edit', ['profession' => $professionModel]) }}"
|
|
title="{{ __('crud.helpers.edit_model', ['model' => __('models.classes.profession')]) }}">
|
|
<i class="fa-solid fa-pencil"></i>
|
|
</a>
|
|
@endcan
|
|
@can('delete', $professionModel)
|
|
@csrf
|
|
@method('DELETE')
|
|
<button class="btn btn-danger" data-bs-toggle="tooltip" data-bs-placement="top" type="submit"
|
|
title="{{ __('crud.helpers.delete_model', ['model' => __('models.classes.profession')]) }}">
|
|
<i class="fa-solid fa-trash"></i>
|
|
</button>
|
|
@endcan
|
|
</form>
|
|
@endcan
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="table-responsive mb-3">
|
|
<table class="table-hover m-0 table">
|
|
<tbody>
|
|
<tr class="border-bottom">
|
|
<td class="w-50 fw-bold text-center align-middle">{{ str(__('validation.attributes.title'))->ucFirst() }}</td>
|
|
<td class="w-50 text-center align-middle">
|
|
{{ $professionModel->title }}
|
|
</td>
|
|
</tr>
|
|
<tr class="border-bottom">
|
|
<td class="w-50 fw-bold text-center align-middle">{{ str(__('validation.attributes.image'))->ucFirst() }}</td>
|
|
<td class="w-50 text-center align-middle">
|
|
<img class="img-fluid" src="{{ asset($professionModel->picture) }}"
|
|
title="{{ $professionModel->picture_title }}" alt="{{ $professionModel->picture_alt }}">
|
|
</td>
|
|
</tr>
|
|
<tr class="border-bottom">
|
|
<td class="w-50 fw-bold text-center align-middle">{{ str(__('validation.custom.jobs_list'))->ucFirst() }}</td>
|
|
<td class="w-50 text-center align-middle">
|
|
<ul class="list-group list-group-flush">
|
|
@foreach ($professionModel->jobs_list as $key => $job)
|
|
<li class="list-group-item">{{ $job['value'] }}</li>
|
|
@endforeach
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr class="border-bottom">
|
|
<td class="w-50 fw-bold text-center align-middle">{{ str(__('validation.custom.url'))->ucFirst() }}</td>
|
|
<td class="w-50 text-center align-middle">
|
|
<a class="link-primary" href="{{ $professionModel->job_url }}" target="_blank">
|
|
{{ $professionModel->job_url }}
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
<tr class="border-bottom">
|
|
<td class="w-50 fw-bold text-center align-middle">
|
|
{{ str(__('validation.custom.publication'))->ucFirst() }}
|
|
</td>
|
|
<td class="w-50 text-center align-middle">
|
|
{{ $professionModel->published
|
|
? str($professionModel->created_at->isoFormat('LLLL'))->ucFirst()
|
|
: __('crud.other.model_not_published') }}
|
|
</td>
|
|
</tr>
|
|
<tr class="border-bottom">
|
|
<td class="w-50 fw-bold text-center align-middle">{{ str(__('validation.attributes.created_at'))->ucFirst() }}</td>
|
|
<td class="w-50 text-center align-middle">
|
|
{{ str($professionModel->created_at->isoFormat('LLLL'))->ucFirst() }}
|
|
</td>
|
|
</tr>
|
|
<tr class="border-bottom">
|
|
<td class="w-50 fw-bold text-center align-middle">{{ str(__('validation.attributes.updated_at'))->ucFirst() }}</td>
|
|
<td class="w-50 text-center align-middle">
|
|
{{ str($professionModel->updated_at->isoFormat('LLLL'))->ucFirst() }}
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|