@extends('admin.layout') {{-- this style will be applied when the direction of language is right-to-left --}} @includeIf('admin.partials.rtl-style') @section('content')
{{ __('Amenities') }}
{{ __('Add') }}
@if (count($amenities) > 0)
@foreach ($amenities as $amenity) @php $content = $amenity ->contents() ->where('language_id', $currentLang->id) ->first(); @endphp @endforeach
{{ __('Icon') }} {{ __('Name') }} {{ __('Status') }} {{ __('Serial Number') }} {{ __('Actions') }}
{{ strlen($content?->name) > 50 ? mb_substr($content?->name, 0, 50, 'UTF-8') . '...' : $content?->name }} @if ($amenity->status == 1)

{{ __('Active') }}

@else

{{ __('Deactive') }}

@endif
{{ $amenity->serial_number }} getContent($lang->id); @endphp data-{{ $lang->code }}_name="{{ $amContent?->name }}" @endforeach data-amenity_id="{{ $amenity->id }}" data-icon="{{ $amenity->icon }}" data-status="{{ $amenity->status }}" data-serial_number="{{ $amenity->serial_number }}">
@csrf
@else

{{ __('NO AMENITY FOUND') }}

@endif
{{ $amenities->appends(['name' => request()->input('name'), 'language' => request()->input('language')])->links() }}
{{-- create modal --}} @include('admin.property-management.amenity.create') {{-- edit modal --}} @include('admin.property-management.amenity.edit') @endsection