@extends('layouts.app') @section('title', __('dashboard.sidebar_laundries')) @section('page_heading', __('dashboard.sidebar_laundries')) @section('content')
{{ __('dashboard.All Laundries') }} {{ number_format($laundries->count()) }}
@can('create laundries') {{ __('dashboard.Add New Laundry') }} @endcan
@if($laundries->isEmpty())
@include('layouts.partials.index-empty-state',['icon'=>'fa-solid fa-droplet','title'=>__('dashboard.No laundries found.'),'message'=>''])
@else
@foreach($laundries as $laundry) @endforeach
# {{ __('dashboard.Name') }} {{ __('dashboard.Is Default?') }} {{ __('dashboard.Actions') }}
{{ $laundry->id }} {{ $laundry->name }} @if($laundry->is_default) {{ __('dashboard.Yes') }} @else {{ __('dashboard.No') }} @endif @canany(['edit laundries','delete laundries'])
@can('edit laundries'){{ __('dashboard.Edit') }}@endcan @can('delete laundries')
@csrf @method('DELETE')
@endcan
@endcanany
@endif
@endsection