@extends('layout.app') @section('title', 'Kelola Infrastruktur - Sistem Manajemen ISP') @section('content') add Tambah Infrastruktur
@php use App\Models\Infrastruktur; $totalInfra = Infrastruktur::count(); $infraAktif = Infrastruktur::where('status', 'Aktif')->count(); $infraMaintenance = Infrastruktur::where('status', 'Maintenance')->count(); $infraNonaktif = Infrastruktur::where('status', 'Nonaktif')->count(); @endphp
apps Daftar Infrastruktur
search
@if(request()->anyFilled(['search', 'jenis', 'status'])) @endif
@forelse($infrastruktur as $index => $infra) @empty @endforelse
No Nama Jenis Alamat Kapasitas Status Vendor Aksi
{{ $infrastruktur->firstItem() + $index }}
apps
{{ $infra->nama }} @if($infra->foto)
image Ada foto
@endif
settings {{ $infra->jenis }}
{{ $infra->alamat }}
@if($infra->latitude && $infra->longitude) location_on {{ $infra->latitude }}, {{ $infra->longitude }} @endif
@if($infra->kapasitas) {{ $infra->kapasitas }} @else - @endif @if($infra->status == 'Aktif') check_circle Aktif @elseif($infra->status == 'Maintenance') build Maintenance @else cancel Nonaktif @endif @if($infra->vendor) {{ $infra->vendor }} @else - @endif
apps

Belum ada infrastruktur

Mulai dengan menambahkan infrastruktur pertama

add Tambah Infrastruktur Pertama
@if($infrastruktur->hasPages()) @endif
@endsection @section('scripts') @endsection