@extends('layouts.app') @section('content') @include('partials.title-pad', [ 'title' => __("labels.hobbies_list_heading"), 'search' => $search, 'searchPlaceholder' => __("placeholders.search", ['static' => __("static.hobby")]), 'list' => $hobbies, 'create' => 'masters.hobby.create', 'export' => 'masters.hobby.export' ]) Clear Filters {{__("datatable.id")}} {{__("datatable.hobby")}} {{__("datatable.sub_hobby")}} {{__("datatable.action")}} @php $startingIndex = ($hobbies->currentPage() - 1) * $hobbies->perPage() + 1; @endphp @forelse ($hobbies as $key => $hobby) {{ $startingIndex + $key }} {{ $hobby->name }} @foreach ($hobby->sub_hobbies as $key => $subHobby) {{-- {{ $subHobby->name }} --}} {{ $subHobby->name }} @endforeach {{-- --}} @if($hobby->sub_hobbies->count()) {{-- --}} @endif @empty {{__("labels.no_records_found")}} @endforelse {{--Pagination--}} {{ $hobbies->links('partials.pagination') }} {{--Pagination End--}}