@extends(get_theme().'.layouts')

@section('content')
    <h1 class="header">{{ $title }}</h1>
    <div class="row">
        @foreach ($data as $item)
            <div class="col-6 col-md-2 mb-3">
                @include(get_theme().'._item_search', ['class' => 'col-6 col-md-2', 'type' => $item->media_type])
            </div>
        @endforeach
    </div>

    <div class="row">
        <div class="col-12 text-center pagenate">
            {!! $data->links() !!}
        </div>
    </div>
@endsection