@extends('admin.layout.app') @section('title', 'Locations') @section('header')

Home - Location Management

@can('locations-create')
@endcan
@endsection @section('content')
Locations
{{-- --}} @foreach ($locations as $key => $location) {{-- --}} @endforeach
No State City Site Floor Block Department NameDescriptionActive Actions
{{ ++$key }} {{ $location->state?->name }} {{ $location->city?->name }} {{ $location->site?->name }} {{ $location->floor?->name }} {{ $location->block?->name }}{{ $location->department?->name }}{{ $location->name }} {{ $location->description }} {!! $location->is_active ? view('components.admin.badges.success', ['message' => 'Active']) : view('components.admin.badges.danger', ['message' => 'Inactive']) !!} @include('admin.location.actions')
{{ $locations->appends(request()->query())->links('vendor.pagination.bordered-rounded') }}
@endsection @section('script') @endsection