@extends('web.layouts.app') @section('content')
@if (env('APP_PROJECT') != 'Rouaa') @include('web.settings_menu') @endif

@lang('user.agents')

@include('web.agents.create')
@foreach ($agents as $agent) @if($agent->id != auth()->user()->id) @include('web.agents.edit') @include('web.agents.delete') @endif @endforeach
@lang('user.name') @lang('user.email') @lang('user.teams') @lang('user.role') @lang('user.status') @lang('user.actions')
{{ $agent->name }} {{ $agent->email }} @foreach ($agent->teams as $key => $team) {{ $team->name }} @if ($key < count($agent->teams) - 1) , @endif @endforeach @foreach ($agent->roles as $role) {{ $role->name }} @endforeach @if ($agent->status == 1) @lang('user.active') @else @lang('user.Inactive') @endif
{{ $agents->links('vendor.pagination.custom') }}

@lang('user.note')

@lang('notes.agents_note')

@endsection @section('script') @endsection