@extends('layouts.layout-2') @section('content')

{{ __('team.firstlines') }}

{{ __('team.firstlines') }} ({{ __('team.firstlines_count_split', ['active' => $activeCount, 'total' => count($rows)]) }}@if ($expiredCount > 0), {{ __('team.firstlines_count_expired', ['count' => $expiredCount]) }}@endif)
{{ __('team.firstlines_copy') }}
{!! Form::open([ 'url' => route('user_team_firstlines'), 'method' => 'GET', 'class' => 'form-inline justify-content-md-end', ]) !!} {!! Form::select('month', $filterMonths, (int) $selectedMonth, ['class' => 'form-control custom-select form-control-sm mr-2', 'onchange' => 'this.form.submit()']) !!} {!! Form::select('year', array_combine($filterYears, $filterYears), (int) $selectedYear, ['class' => 'form-control custom-select form-control-sm', 'onchange' => 'this.form.submit()']) !!} {!! Form::close() !!}
@if (count($rows) === 0)

{{ __('team.firstlines_none') }}

@else
@foreach ($rows as $row) @endforeach
{{ __('tables.adviser') }} {{ __('team.career_level') }} {{ __('team.firstlines_points') }} {{ __('tables.phone') }} {{ __('tables.email') }} {{ __('team.active_since') }}
{{ $row['name'] }}
@unless ($row['is_active_account']) {{ __('team.account_inactive') }} @endunless
{{ $row['career_level'] }} {{ \App\Services\Util::formatNumber($row['total_points']) }} @if ($row['phone'] !== '') {{ $row['phone'] }} @else - @endif {{ $row['email'] }} {{ $row['active_since'] ? formatDate($row['active_since']) : '-' }}
@endif
@endsection