2023-07-21 09:37:19 +00:00
|
|
|
@php
|
|
|
|
$route = explode('.', Route::currentRouteName());
|
|
|
|
@endphp
|
2023-08-10 04:35:07 +00:00
|
|
|
@if( Auth::user()->hasRole('ad') || Auth::user()->hasRole('dd') || Auth::user()->hasRole('administrator'))
|
2023-07-21 09:37:19 +00:00
|
|
|
<div class="d-flex flex-row flex-center">
|
|
|
|
<a href="{{ route($route[0].'.edit',[str_replace('-','_',$route[0]) => $model->id]) }}"
|
2023-08-10 04:35:07 +00:00
|
|
|
class="btn btn-icon btn-bg-light btn-active-light-primary btn-sm me-1">
|
|
|
|
{!! getIcon("eye", "fs-1 text-info","duotune") !!}
|
2023-07-21 09:37:19 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
@endif
|