@extends('layouts.app') @section('title', 'Show User') @section('content')
User Details
{{-- @can('User create') --}} {{-- --}} {{-- --}} {{-- @endcan --}} {{-- --}} @can('User update') @endcan @can('User delete') @endcan
User Details
status === 'Active' ? 'checked' : '' }}>
status === 'Suspended' ? 'checked' : '' }}>
Logs
@foreach ($logs as $log) @endforeach
User Log Date
{{ auth()->user()->first_name }} @php $details = $log->details; $updatedAtPosition = strpos($details, "'updated_at'"); if ($updatedAtPosition !== false) { $details = substr($details, 0, $updatedAtPosition); } @endphp {{ $details }} {{ $log->created_at->format('Y-m-d - H:i:s') }}
{{ $logs->links() }}
@endsection @push('js') @endpush