@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
List {{ $title_menu }}
@include('components.alert')

@foreach ($table_detail as $detail) @php $primary = encrypt($detail->id); $subDivisionCount = $sub_division_counts[$detail->id] ?? []; $customerCount = $customer_counts[$detail->id] ?? 0; @endphp isactive == '0' ? 'class=not style=background-color:#ffe9ed;' : '' }}> @endforeach
Action No Salesperson Year Divisi (H/M/I) Budget (KG) Threshold (KG) Target (KG) Total Customer Status
{{ $table_detail->firstItem() + $loop->index }} {{ $detail->username }}
{{ $detail->user_name }}
{{ $detail->year }} @if (count($subDivisionCount) > 0) @foreach ($subDivisionCount as $subDiv => $cnt) {{ $subDiv }}: {{ $cnt }} @endforeach @else - @endif {{ number_format($detail->budget, 2) }} {{ number_format($detail->threshold, 2) }} {{ number_format($detail->target, 2) }} {{ $customerCount }} @if ($detail->isactive == '1') Active @else Inactive @endif
Data {{ $table_detail->firstItem() }} - {{ $table_detail->lastItem() }} dari {{ $table_detail->total() }} data.
{{ $table_detail->appends(request()->query())->links('pagination::bootstrap-4') }}
@endsection @push('js') @endpush