@extends('layouts.admin') @section('styles') @endsection @section('app')
@if (in_array(auth()->user()->role_id, [1, 2])) @endif
@if (in_array(auth()->user()->role_id, [1, 2])) @endif @foreach ($users as $user) @if (in_array(auth()->user()->role_id, [1, 2])) @endif @endforeach
No Nama Lengkap Nama Pengguna Email Barbershop Kontak Role Gaji Pokok Status Tanggal BekerjaAksi
{{ $loop->iteration }} {{ $user->biography->full_name ?? '-' }} {{ $user->username }} {{ $user->email }} {{ $user->biography->contact_number ?? '-' }} {{ $user->barbershop->name ?? '-' }} {{ $user->role->name ?? '-' }} {{ formatToRupiah($user->base_salary) }} {!! $user->is_active === '1' ? 'Aktif' : 'Tidak Aktif' !!} {{ formatDateIndo($user->entry_date) }}
  • @csrf @method('put')
  • @if (in_array(auth()->user()->role_id, [1, 2]))
  • @csrf @method('delete')
  • @endif
@endsection @section('afterScripts') @endsection