@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) {{-- section content --}} @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
{{-- JUDUL --}}
List {{ $title_menu }}
{{-- alert --}} @include('components.alert')
{{-- TOMBOL TAMBAH --}}
@php $activeRole = $user_rules[0] ?? ''; $collectionTagihan = collect($data_tagihan); $tagihanUser = $collectionTagihan ->filter(function ($item) { return strtolower(trim($item->kategori_kartu ?? '')) === 'user'; }) ->values(); $tagihanOperasional = $collectionTagihan ->filter(function ($item) { return strtolower(trim($item->kategori_kartu ?? '')) === 'operasional'; }) ->values(); $totalKeseluruhan = $collectionTagihan->sum('total_bill'); $totalUser = $tagihanUser->sum('total_bill'); $jumlahUser = $tagihanUser->count(); $totalOperasional = $tagihanOperasional->sum('total_bill'); $jumlahOperasional = $tagihanOperasional->count(); $kategoriGroups = [ 'user' => [ 'label' => 'User', 'value' => '1', 'icon' => 'fas fa-user', 'items' => $tagihanUser, ], 'operasional' => [ 'label' => 'Operasional', 'value' => '2', 'icon' => 'fas fa-briefcase', 'items' => $tagihanOperasional, ], ]; @endphp {{-- CARD RINGKASAN TAGIHAN --}}
{{-- Total keseluruhan --}}

TOTAL KESELURUHAN

Rp. {{ number_format($totalKeseluruhan, 0, ',', '.') }}
{{ $collectionTagihan->count() }} data tagihan
{{-- Total kategori User --}}

TOTAL KATEGORI USER

Rp. {{ number_format($totalUser, 0, ',', '.') }}
{{ $jumlahUser }} nomor Kartu Halo
{{-- Total kategori Operasional --}}

TOTAL KATEGORI OPERASIONAL

Rp. {{ number_format($totalOperasional, 0, ',', '.') }}
{{ $jumlahOperasional }} nomor Kartu Halo
{{-- Total terpilih --}}

TOTAL TAGIHAN TERPILIH

Rp. 0
0 data dipilih
{{-- TAB KATEGORI --}} {{-- ISI TAB --}}
@foreach ($kategoriGroups as $key => $group)
{{-- TOMBOL BULK PER KATEGORI --}}
{{ $group['items']->count() }} data menunggu approval
{{-- TABEL PER KATEGORI --}}
@foreach ($group['items'] as $item) {{-- CHECKBOX --}} {{-- ACTION --}} @endforeach
Action No Pengguna Departemen No. Kartu Halo Kategori Abodemen Lain-lain PPN 11% Total Tagihan Created At
{{-- APPROVE --}} {{-- DROPDOWN --}}
{{ $loop->iteration }} {{ $item->nama_karyawan }} {{ $item->nama_departemen }} {{ $item->phone_number }} @if ($key === 'user') User @else Operasional @endif {{ number_format($item->abodemen, 0, ',', '.') }} {{ number_format($item->other_bill, 0, ',', '.') }} {{ number_format($item->tax, 0, ',', '.') }} {{ number_format($item->total_bill, 0, ',', '.') }} {{ $item->created_at }}
@endforeach
{{-- check flag js on dmenu --}} @if ($jsmenu == '1') @if (view()->exists("js.{$dmenu}")) @push('addjs') {{-- file js in folder (resources/views/js) --}} @include('js.' . $dmenu); @endpush @else @push('addjs') @endpush @endif @endif @endsection @push('js') @endpush