@extends('layouts.app') @push('pageTitle') {{ __('labels.users') }} @endpush @push('css') @endpush @section('content')
| # | {{ __('labels.name') }} | {{ __('labels.email') }} | {{ __('labels.created_at') }} | {{ __('labels.action') }} |
|---|---|---|---|---|
| {{ $index + 1 }} |
{{ $item->name }}@if ($item->is_premium) {{ __('labels.premium') }} @endif |
{{ $item->email }}
@if ($item->email_verified_at)
@endif
|
{{ $item->created_at?->format('d.m.Y') }}
{{ $item->created_at?->format('H:i') }}
{{ $item->created_at?->shortRelativeDiffForHumans() }}
|
@if ($item->trashed())
@else
@php
$actionCount = 0;
if (auth()->user()->can('update', $item)) {
$actionCount++;
}
if (auth()->user()->can('delete', $item)) {
$actionCount++;
}
@endphp
@if ($actionCount <= 3)
@can('view', $item)
@endcan
@can('update', $item)
@endcan
@can('delete', $item)
@endcan
@else
|