@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' ])
@php $startingIndex = ($hobbies->currentPage() - 1) * $hobbies->perPage() + 1; @endphp @forelse ($hobbies as $key => $hobby) @empty @endforelse
{{__("datatable.id")}} {{__("datatable.hobby")}} {{__("datatable.sub_hobby")}} {{__("datatable.action")}}
{{ $startingIndex + $key }} {{ $hobby->name }} @foreach ($hobby->sub_hobbies as $key => $subHobby) {{-- --}} @endforeach {{-- --}} @if($hobby->sub_hobbies->count()) {{-- --}} @endif

{{__("labels.no_records_found")}}

{{--Pagination--}} {{ $hobbies->links('partials.pagination') }} {{--Pagination End--}}
@section('scripts') @endsection @endsection