MangaDex/resources/views/index.blade.php

41 lines
1.4 KiB
PHP
Raw Permalink Normal View History

2023-08-23 18:19:50 +06:30
@extends('layouts.master')
@section('content')
<div class="row mt-5">
2023-09-08 00:32:45 +06:30
@if (request()->search)
<div class="d-flex align-items-center mb-3">
<h4 class="fw-semibold">#Search result by <span class="text-primary">{{ request()->search }}</span> </h4>
<a title="clear search" href="{{ route('page.index') }}" class="btn btn-danger ms-4 p-0 px-1 border-1 border-dark"> <i class="bi bi-x-lg"></i> </a>
</div>
@endif
2023-09-20 21:19:28 +06:30
<div class="col-12 col-lg-9 mb-4">
2023-08-30 21:15:58 +06:30
<div class="row flex-wrap">
2023-09-06 14:37:03 +06:30
@forelse ($mangas as $manga)
<x-outter-manga-frame :manga="$manga" />
@empty
2023-09-08 00:32:45 +06:30
@if (request()->search)
<p class="text-center text-danger">Found nothing!!</p>
@else
<p class="text-center text-danger">No Manga Yet</p>
@endif
2023-09-06 14:37:03 +06:30
@endforelse
2023-08-30 21:15:58 +06:30
2023-08-23 18:19:50 +06:30
</div>
</div>
<hr class="d-block d-md-none w-75 mx-auto text-primary">
2023-09-20 21:19:28 +06:30
<div class="col-12 col-lg-3 my-4 my-lg-0">
2023-08-30 21:15:58 +06:30
@include('partials.hot-manga')
2023-08-23 18:19:50 +06:30
</div>
2023-09-06 14:37:03 +06:30
<div class="col-12 mt-5">
<div class="float-end">
{{ $mangas->links() }}
</div>
</div>
2023-08-23 18:19:50 +06:30
</div>
2023-09-06 14:37:03 +06:30
@endsection
2023-08-30 21:15:58 +06:30
@section('footer')
2023-09-06 14:37:03 +06:30
<x-footer />
2023-08-30 21:15:58 +06:30
@endsection