@extends('layouts.main') @section('title', 'Warehouse') @section('content') @include('layouts.components.alert-prompt') @if (auth()->user()->role_id == 1)
@forelse ($warehouse as $data) @empty @endforelse
No. Nama Gudang Deskripsi Alamat Action
{{ $i++ }} {{ optional($data)->name }} {{ optional($data)->description }} {{ optional($data)->address }}
@csrf @method('DELETE')
Data Kosong
@if (!$warehouse->isEmpty())

Showing {{ $warehouse->firstItem() }} to {{ $warehouse->lastItem() }} of {{ $warehouse->total() }} entries

@endif
@if ($warehouse->total() > $warehouse->perPage()) @endif
@elseif(auth()->user()->role_id == 2) @include('pages.user.master_data.warehouse.index') @endif @foreach ($warehouse as $data) @endforeach @endsection