Path : /var/www/html/jewelry-pos/resources/views/users/ |
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
Current File : /var/www/html/jewelry-pos/resources/views/users/index.blade.php |
@extends('layouts.admin-main') @section('content') <div class="col-lg-12"> <div class="card-body shadow-1"> <div class="row"> <div class="col-lg-12 margin-tb"> <div class="pull-right mb-2" style="display: flex;justify-content:space-between;text-align: right;"> @can('login-informations-list') <a class="btn btn-sm btn-success" href="{{ route('login-informations.index') }}?user_id={{Auth::user()->id}}"> <i class="fal fa-info-circle"></i> {{ __('message.current login') }} </a> @endcan @can('user-create') <a class="btn btn-sm btn-primary" href="{{ route('users.create') }}"> <i class="fal fa-plus"></i> {{ __('message.add new') }} </a> @endcan </div> </div> </div> <div class="panel-container show"> <div class="d-flex flex-column h-100"> <div class="h-auto"> <table id="example" class="table table-bordered table-hover table-striped w-100"> <thead class="bg-fusion-400"> <tr> <th>#</th> <th>{{ __('message.name') }}</th> <th>{{ __('message.position') }}</th> <th>{{ __('message.role') }}</th> <th>{{ __('message.phone') }}</th> <th>{{ __('message.gender') }}</th> <th>{{ __('message.status') }}</th> <th>{{ __('message.created date') }}</th> <th>{{ __('message.action') }}</th> </tr> </thead> <tbody> @foreach ($users as $key => $user) <tr @if (!$user->is_active) class="inactive" @endif> <td>{{$key+1}}</td> <td> <a href="{{route('users.show' , $user->id)}}" style="color: black" title="{{__('message.show user')}}"> {{$user->name}} </a> </td> <td>{{ $user->position }}</td> <td> @if (!empty($user->getRoleNames())) @foreach ($user->getRoleNames() as $v) <label class="badge badge-success bg-success-700">{{ $v }}</label> @endforeach @endif </td> <td class="text-info"> <span @if (!$user->is_active) style="color: red" @endif> {{ $user->phone }} </span> </td> <td>{{ $user->gender }}</td> <td> @if ($user->is_active) <span class="badge badge-pill badge-success">Active</span> @else <span class="badge badge-pill badge-danger">Inactive</span> @endif </td> <td>{{ $user->created_at->format('d/m/Y H:i') }} <td> @if ($user->is_active) <a href="{{ route('user.inactive', $user->id) }}" class="btn btn-sm btn-danger" title="Inactive Now">{{ __('message.deactivate') }}</a> @else <a href="{{ route('user.active', $user->id) }}" class="btn btn-sm btn-success" title="Active Now"> {{ __('message.activate') }} </a> @endif @if ($user->is_active) @can('user-edit') <a class="btn btn-sm btn-primary UserchangePass_modal text-light" data-toggle="modal" data-target="#UserchangePass_modal" data-user-id="{{$user->id}}"> <i class="fal fa-lock" title="{{ __('message.change password') }}"></i> <span>{{ __('message.change password') }}</span> </a> <a class="btn btn-sm btn-info" href="{{ route('users.edit', $user->id) }}"><i class="fal fa-pen" title="{{ __('message.edit') }}"></i> </a> @endcan @can('login-informations-list') <a class="btn btn-sm btn-success" href="{{ route('login-informations.index') }}?user_id={{$user->id}}"><i class="fal fa-info-circle" title="{{ __('message.login information') }}"></i> </a> @endcan @endif <!-- <form method="POST" action="users/{{ $user->id }}" style="display:inline"> <input name="_method" type="hidden" value="DELETE"> {{ csrf_field() }} <button type="submit" class="btn btn-sm btn-danger" onclick="return confirm('{{ __('message.do you want to delete') }}?')"> <i class="fal fa-trash" style="color: #FFF;"></i> </button> </form> --> </td> </tr> @endforeach </tbody> </table> <!-- userstable end --> </div> </div> </div> </div> <div class="py-4 mt-4 mx-2 "> <!-- Pagination bootstrap--> {{ $users->appends($_GET)->links() }} </div> </div> {{-- modal change pwd --}} @include('app.user-modal') @include('app.edit-profile-modal') @endsection @section('scripts') <script> // nav $(document).ready(function() { $("#js-nav-menu").removeClass('active'); $("#js-nav-menu li ul li").removeClass('active'); $("#menu_user_list").addClass('active open'); $("#collapse_user").addClass('collapse in') $("#menu_user").addClass('active') }) $('.UserchangePass_modal').click(function(){ var user_id = $(this).data('user-id') $('.frm-change-password').attr('action','{{route('user.updatePassword')}}/'+user_id) }); </script> @endsection @section('meta') <title>{{ __('message.user list') }} - {{$settings_->shop_name}}</title> @endsection