update column users action

This commit is contained in:
Daeng Deni Mardaeni 2023-09-27 15:44:58 +07:00
parent 9daedaedc5
commit a2135cf4af

View File

@ -1,6 +1,9 @@
@php
$route = explode('.', Route::currentRouteName());
@endphp
<!--begin:: Avatar --> <!--begin:: Avatar -->
<div class="symbol symbol-circle symbol-50px overflow-hidden me-3"> <div class="symbol symbol-circle symbol-50px overflow-hidden me-3">
<a href="{{ route('user-management.users.show', $model) }}"> <a href="{{ route($route[0].'.'.$route[1].'.show', $model) }}">
@if($model->profile_photo_url) @if($model->profile_photo_url)
<div class="symbol-label"> <div class="symbol-label">
<img src="{{ $model->profile_photo_url }}" class="w-100"/> <img src="{{ $model->profile_photo_url }}" class="w-100"/>
@ -15,7 +18,7 @@
<!--end::Avatar--> <!--end::Avatar-->
<!--begin::User details--> <!--begin::User details-->
<div class="d-flex flex-column"> <div class="d-flex flex-column">
<a href="{{ route('user-management.users.show', $model) }}" class="text-gray-800 text-hover-primary mb-1"> <a href="{{ route($route[0].'.'.$route[1].'.show', $model) }}" class="text-gray-800 text-hover-primary mb-1">
{{ $model->name }} {{ $model->name }}
</a> </a>
<span>{{ $model->email }}</span> <span>{{ $model->email }}</span>