@extends('layouts.app')

@section('content')

<div class="container">
    @include('partials.page-header',['is_search' => true])
    @if (have_posts())
      @php
        $post_type = $_GET['post_type'];
      @endphp
    @endif

    @if($post_type)
      @include('partials.search-' . $post_type, ['show_all' => true])
    @else
      @include('partials.search-decors')
      @include('partials.search-post')
      @include('partials.search-downloads')
    @endif
</div><!--container-->
@endsection