@extends('backend.layout.main') @section('content')
@if (in_array('sale-agents', $all_permission)) @endif
@if (in_array('project', explode(',', $general_setting->modules))) @endif @foreach ($lims_sale_agent_all as $key => $agent) @php $department = \App\Models\Department::find($agent->department_id); @endphp @if ($agent->image) @else @endif @if (in_array('project', explode(',', $general_setting->modules))) @endif @endforeach
{{ __('db.Image') }} {{ __('db.name') }} {{ __('db.Email') }} {{ __('db.Phone Number') }} {{ __('db.Department') }} {{ __('db.Address') }} {{ __('db.Staff Id') }}{{ __('db.Company') }}{{ __('db.action') }}
{{ $key }} No Image{{ $agent->name }} {{ $agent->email }} {{ $agent->phone_number }} {{ @$department->name }} {{ $agent->address }} @if ($agent->city) {{ ', ' . $agent->city }} @endif @if ($agent->state) {{ ', ' . $agent->state }} @endif @if ($agent->postal_code) {{ ', ' . $agent->postal_code }} @endif @if ($agent->country) {{ ', ' . $agent->country }} @endif {{ $agent->staff_id }}{{ $agent->user->company_name }}
{{-- Edit Modal --}} @endsection @push('scripts')