@php use Illuminate\Support\Facades\Auth; @endphp @include('template.head') {{ $page_name = 'user' }} @include('template.sidebar') @include('template.header') @include('template.rightpanel')

User

@if ($priviladges[11]['add'] == 1 || (isset($type) && $priviladges[11]['update'] == 1))

{{ isset($type) == 'EDIT' ? 'Edit' : 'Add' }} User


@csrf
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('username')) {{ $errors->first('username') }} @endif
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
@if ($errors->has('contact')) {{ $errors->first('contact') }} @endif
@if ($errors->has('usertype_id')) {{ $errors->first('usertype_id') }} @endif
@if (isset($type) == 'EDIT')
@endif
@if ( (!in_array(isset($data[0]->username) ? $data[0]->username : '', $notEditedUsers, true) && isset($type)) || !isset($type)) @endif
@endif
@if ($priviladges[11]['search'] == 1)

Filter User


@csrf
@endif
{{-- @if (count($data) > 0) @foreach ($data as $row) @endforeach @else @endif --}}
Name Username Email Contact User Type Status Action By Action
{{ $row->name }} {{ $row->username }} {{ $row->email }} {{ $row->contact }} {{ $row->userType->name }} {{ $row->status == 1 ? 'Active' : 'Inactive' }} {{ isset($row->actionUser->name) ? $row->actionUser->name : '' }}
@if ($priviladges[14]['ability'] == 1 && $row->usertype_id == 4) @endif @if ($priviladges[11]['update'] == 1 && !in_array($row->username, $notEditedUsers, true)) @endif
{{-- {!! $data->links() !!} --}}
{{-- script start --}} @include('template.script') {{-- script end --}}