@extends('layouts.admin.admin_layout') @section('title', trans('applang.users')) @section('vendor-css') {{-- --}} @endsection @section('page-css') {{----}} {{----}} @endsection @section('content')
{{trans('applang.add')}}
{{--
--}}
@if ($users->count()) @foreach ($users as $user) @endforeach @endif
{{--
--}} {{--
--}}
{{trans('applang.code')}} {{trans('applang.name')}} {{trans('applang.created_at')}} {{trans('applang.phone')}} {{trans('applang.roles')}} {{trans('applang.department')}} {{trans('applang.status')}} {{trans('applang.actions')}}
{{--
--}} user()->id == $user->id ? "disabled" : ""}}> {{--
--}}
{{$user->full_code}} {{$user->first_name}} {{$user->last_name}} {{dateHelper($user->created_at)}} {{$user->phone}} @if (Spatie\Permission\Models\Role::count() > 0 && userRolesIds($user->id)->count() > 0) {!! "" .implode('', userRolesName($user->id)) .""!!} @else {{trans('applang.not_found')}} @endif {{app()->getLocale() == 'fa' ? $user->department->name_fa : $user->department->name_en}} @if ($user->status == 1) {{trans('applang.active')}} @elseif ($user->status == 2) {{trans('applang.close')}} @elseif ($user->status == 3) {{trans('applang.banned')}} @endif @if(auth()->user()->id != $user->id) @endif
@include('admin.users.modals') @endsection @section('page-vendor-js') {{-- --}} @endsection @section('page-js') {{-- --}} {{-- --}} {{-- --}} @if (app()->getLocale() == 'af') {{-- --}} @else {{-- --}} @endif @endsection