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

Manajemen Perusahaan

@endsection @section('content')
{{-- Tombol tambah sesuai DESIGN.md §3: btn btn-primary dengan ri-add-line --}}
@canRoute ('companies.create') Tambah Perusahaan @endcanRoute
@include('partials.tables.filters', ['paginator' => $companies, 'tableFilters' => ['sort', 'direction']]) {{-- Kolom Aksi: wajib text-center + style RdataTB override (DESIGN.md §3) --}} @forelse ($companies as $company) {{-- Sel Aksi: text-center dengan d-flex justify-content-center (DESIGN.md §3) --}} @empty @endforelse
No. @include('partials.tables.sort_link', ['column' => 'name', 'label' => 'Nama Perusahaan']) @include('partials.tables.sort_link', ['column' => 'email', 'label' => 'Email']) @include('partials.tables.sort_link', ['column' => 'phone_number', 'label' => 'Telepon']) @include('partials.tables.sort_link', ['column' => 'address', 'label' => 'Alamat']) @include('partials.tables.sort_link', ['column' => 'pic_name', 'label' => 'PIC']) Paket MCU Status Aksi
{{ $companies->firstItem() + $loop->index }}
{{ $company->name }}
{{ $company->email }} {{ $company->phone_number }} {{ Str::limit($company->address ?? '-', 30) }} {{ $company->pic_name ?? $company->contact_person }} @if ($company->mcuPackages->count() > 0) @foreach ($company->mcuPackages as $package) {{ $package->code }}{{ $package->pivot->is_default ? ' (Default)' : '' }} @endforeach @else Belum ada paket @endif @if ($company->is_active) Aktif @else Tidak Aktif @endif
@canRoute ('companies.show') @endcanRoute @canRoute ('companies.edit') @endcanRoute @canRoute ('companies.destroy')
@csrf @method ('DELETE')
@endcanRoute
Tidak ada data yang cocok dengan pencarian.
{{ $companies->links('partials.tables.pagination') }}
@endsection