@extends('layouts.app') @section('title', 'App Users') @section('content')
App Users
{{-- Export button commented out, uncomment if needed --}} {{-- --}} @can('App User create') @endcan
{{--
--}}

@if ($appUsers->isEmpty()) @else @foreach ($appUsers as $appUser) @endforeach @endif
ID Name Contact Number Reported to Assigned Warehouse Status Actions
No data to display
@can('App User show') {{ $appUser->id }} @else {{ $appUser->id }} @endcan {{ $appUser->name }} {{ $appUser->contact_number }} {{ $appUser->reportedTo->name ?? '-' }} {{ $appUser->warehouse->name ?? '-' }} @if($appUser->status == 'enabled') {{ ucfirst($appUser->status) }} @elseif($appUser->status == 'disabled') {{ ucfirst($appUser->status) }} @else {{ ucfirst($appUser->status) }} @endif
@can('App User update') @endcan @can('App User delete') @endcan
Showing {{ $paginationDetails['firstItem'] }} to {{ $paginationDetails['lastItem'] }} of {{ $paginationDetails['total'] }} entries
{{ $appUsers->appends(request()->query())->links() }}
@endsection @push('js') @endpush