@extends('layouts.app') @section('title', 'Manajemen Item Tambahan - MCU Klinik Mustika') @section('breadcrumb')

Manajemen Item Tambahan

@endsection @section('content')
@canRoute ('addon-items.create') Tambah Item @endcanRoute
@include('partials.tables.filters', ['paginator' => $addonItems, 'tableFilters' => ['sort', 'direction']]) {{-- Kolom Aksi: wajib text-center + style RdataTB override (DESIGN.md §3) --}} @forelse ($addonItems as $item) {{-- Sel Aksi: text-center dengan d-flex justify-content-center (DESIGN.md §3) --}} @empty @endforelse
No. @include('partials.tables.sort_link', ['column' => 'code', 'label' => 'Kode']) @include('partials.tables.sort_link', ['column' => 'name', 'label' => 'Nama Item']) @include('partials.tables.sort_link', ['column' => 'type', 'label' => 'Tipe']) @include('partials.tables.sort_link', ['column' => 'price', 'label' => 'Harga']) @include('partials.tables.sort_link', ['column' => 'gender_specific', 'label' => 'Gender']) @include('partials.tables.sort_link', ['column' => 'is_active', 'label' => 'Status']) Aksi
{{ $addonItems->firstItem() + $loop->index }} {{ $item->code ?? '-' }}
{{ $item->name }}
@if ($item->type == 'addon') Tambahan @elseif ($item->type == 'package') Paket @elseif ($item->type == 'discount') Diskon @endif Rp {{ number_format($item->price, 0, ',', '.') }} @if ($item->gender_specific == 'male') Laki-laki @elseif ($item->gender_specific == 'female') Perempuan @elseif ($item->gender_specific == 'both') Semua @endif @if ($item->is_active) Aktif @else Tidak Aktif @endif
@canRoute ('addon-items.show') @endcanRoute @canRoute ('addon-items.edit') @endcanRoute @canRoute ('addon-items.destroy')
@csrf @method ('DELETE')
@endcanRoute
Tidak ada data yang cocok dengan pencarian.
{{ $addonItems->links('partials.tables.pagination') }}
@endsection