@extends('admin.layouts.app') @section('title', 'Team') @section('content') @php($currecy = DB::table('about_businesses')->join('currency_countries', 'about_businesses.base_currency', '=', 'currency_countries.currency_country_uuid')->where('business_id', $business_id)->select('currency_countries.country_code')->first())

Team List All the team members registered under employee section listed here, you can filter results based on values for better management.

@if(!empty($team->thumbnail) && file_exists('uploads/team/thumbnail/'.$team->thumbnail)) @else @endif
{{ $team->employee_id }}

{{ $team->title }} {{ $team->firstname }} {{ $team->lastname }}

{{(empty($department->title) || is_null($department->title))?"Undefined":$department->title}},{{(empty($designation->title) || is_null($designation->title))?"Undefined":$designation->title}}
{{--
Staff Options
--}}
Email
Department
{{(empty($department->title) || is_null($department->title))?"Undefined":$department->title}}
Country
{{(empty($country->name) || is_null($country->name))?"Undefined":$country->name}}
Mobile
{{!empty($team->mobile) ? $team->mobile : 'Undefined'}}
State
{{(empty($state->name) || is_null($state->name))?"Undefined":$state->name}}
Address
{{!empty($team->address) ? $team->address : 'Undefined' }}
City
{{(empty($city->name) || is_null($city->name))?"Undefined":$city->name}}
Zipcode
{{(empty($team->zipcode) || is_null($team->zipcode))?"Undefined":$team->zipcode}}
Groups
{{ !empty($group) ? $group->title : 'Undefined'}}
@include('admin.bottom.messages')
@if(!$tasks->isEmpty()) @foreach($tasks as $task) @php($staff = \App\Models\Admin::where('admin_uuid', $task->task_owner)->first()) @php($activity = \App\Models\Activity::where('business_id', $business_id)->where('activity_linked_with',$task->task_uuid)->count())
{{$task->task_type}} {{ !empty($staff) ? $staff->title.' '.$staff->firstname.' '.$staff->lastname : '' }} {{date('d M,Y',strtotime($task->task_due_on))}}
{{ $task->task_priority_status }} Priority
{{date('d M,Y',strtotime($task->task_due_on))}}
@foreach($task_stages as $task_stage) @if(!empty($task->task_stage) && $task->task_stage == $task_stage->record_uuid )
{{ $task_stage->title}} {{ $activity }} activities
@endif @endforeach {{-- --}}
@endforeach @else

{{ trans('general.no_records') }}

@endif
@if(!$opportunities->isEmpty()) @foreach($opportunities as $opportunity)
{{ $opportunity->account_name }}
Opportunity Value: {{ !empty($currecy) ? $currecy->country_code : 'USD' }} {{ (!empty($opportunity->estimated_budget)) ? ((!empty($decimal->amt_decimal)) ? truncate_number($opportunity->estimated_budget, $decimal->amt_decimal) : $opportunity->estimated_budget) : '' }}
Owned By: {{ $opportunity->title.' '.$opportunity->firstname.' '.$opportunity->lastname }}
Current Status: {{ $opportunity->stage_title }}
Expected Closing: - {{ !empty($opportunity->opportunity_expiry) ? date('Y-m-d', strtotime($opportunity->opportunity_expiry)) : 'N/A' }}
@php($admin_uuids = DB::table('opportunity_teams')->where('opportunity_uuid', $opportunity->opportunity_uuid)->pluck('admin_uuid')->toArray()) @if(!empty($admin_uuids)) @php($admins = DB::table('admins')->whereIn('admin_uuid', $admin_uuids)->get()) @endif
Team Members
@if(!empty($admin_uuids) && !$admins->isEmpty()) @php($resultstr = array()) @foreach($admins as $admin) @php($name =$admin->title.' '.$admin->firstname.' '.$admin->lastname ) @php($resultstr[] = $name) @endforeach {{ implode(" , ",$resultstr) }} @else Team does not exist @endif
@endforeach @else

No record found!!!

@endif
@if(!$leads->isEmpty()) @foreach($leads as $lead)
Lead Value: {{ !empty($currecy) ? $currecy->country_code : 'USD' }} {{ (!empty($lead->lead_value)) ? ((!empty($decimal->amt_decimal)) ? truncate_number($lead->lead_value, $decimal->amt_decimal) : $lead->lead_value) : '0' }}
Owned By: {{ $lead->title.' '.$lead->firstname.' '.$lead->lastname }}
Current Status: {{ $lead->stage_title }}
Expected Closing: - {{ !empty($lead->lead_expiry) ? date('Y-m-d', strtotime($lead->lead_expiry)) : '' }}
@php($admin_uuids = DB::table('lead_teams')->where('lead_uuid', $lead->lead_uuid)->pluck('admin_uuid')->toArray()) @if(!empty($admin_uuids)) @php($admins = DB::table('admins')->whereIn('admin_uuid', $admin_uuids)->get()) @endif
Team Members
@if(!empty($admin_uuids) && !$admins->isEmpty()) @php($resultstr = array()) @foreach($admins as $admin) @php($name =$admin->title.' '.$admin->firstname.' '.$admin->lastname ) @php($resultstr[] = $name) @endforeach {{ implode(" , ",$resultstr) }} @else Team does not exist @endif
@endforeach @else

No record found!!!

@endif
@include('admin.bottom.files')
@include('admin.bottom.notes')
@include('admin.bottom.logs')

Are You Sure?

Your recently changed data in this model will be lost.

{{-- Image upload --}} {{-- End image upload --}} @include('admin.bottom.file_viewer'); @include('admin.common-modals.note'); @include('admin.common-modals.upload-file'); @include('admin.common-modals.newmessage'); @include('admin.common-modals.mail-view'); @stop @section('styles') @stop @section('admin_js') @include('admin.team.js.view') @include('admin.common-js.common') @stop