@extends('front.layouts.master')

@section('seo_title', $portfolio->seo_title)
@section('seo_meta_description', $portfolio->seo_meta_description)

@section('content')
<!-- Banner Section -->
<section class="page-title" style="background-image: url({{ asset('uploads/'.$global_setting->banner) }});">
    <div class="auto-container">
        <div class="title-outer">
            <h1 class="title">{{ $portfolio->name }}</h1>
            <ul class="page-breadcrumb">
                <li><a href="{{ url('/') }}">{{ __('Home') }}</a></li>
                <li><a href="{{ route('portfolios') }}">{{ $global_other_page_items->page_portfolios_title }}</a></li>
                <li>{{ $portfolio->name }}</li>
            </ul>
        </div>
    </div>
</section>
<!-- // Banner Section -->


<!-- Portfolio Detail Section -->
<section class="project-details">
    <div class="container">
        <div class="row">
            <div class="col-xl-12">
                <div class="project-details__top">
                    <div class="project-details__img">
                        <img src="{{ asset('uploads/'.$portfolio->banner) }}" alt="">
                    </div>
                </div>
            </div>
        </div>
        <div class="project-details__content">
            <div class="row">
                <div class="col-xl-8 col-lg-8">
                    <div class="project-details__content-left">
                        <h3 class="mb-4">{{ __('Know About This Project') }}</h3>
                        {{ $portfolio->description }}
                    </div>
                </div>

                @if($portfolio->date !='' || $portfolio->client !='' ||  $portfolio->website !='' || $portfolio->location !='' || $portfolio->price_value !='')
                <div class="col-xl-4 col-lg-4">
                    <div class="project-details__content-right">
                        <div class="project-details__details-box">
                            <div class="project-details__bg-shape"> </div>
                            <ul class="list-unstyled project-details__details-list">

                                @if($portfolio->date !='')
                                <li>
                                    <p class="project-details__client">{{ __('Date') }}</p>
                                    <h4 class="project-details__name">
                                        {{ $portfolio->date }}
                                    </h4>
                                </li>
                                @endif

                                @if($portfolio->client !='')
                                <li>
                                    <p class="project-details__client">{{ __('Client') }}</p>
                                    <h4 class="project-details__name">
                                        {{ $portfolio->client }}
                                    </h4>
                                </li>
                                @endif

                                @if($portfolio->website !='')
                                <li>
                                    <p class="project-details__client">{{ __('Website') }}</p>
                                    <h4 class="project-details__name">
                                        {{ $portfolio->website }}
                                    </h4>
                                </li>
                                @endif

                                @if($portfolio->location !='')
                                <li>
                                    <p class="project-details__client">{{ __('Location') }}</p>
                                    <h4 class="project-details__name">
                                        {{ $portfolio->location }}
                                    </h4>
                                </li>
                                @endif
                                
                                @if($portfolio->price_value !='')
                                <li>
                                    <p class="project-details__client">{{ __('Value') }}</p>
                                    <h4 class="project-details__name">
                                        {{ $portfolio->price_value }}
                                    </h4>
                                </li>
                                @endif

                            </ul>
                        </div>
                    </div>
                </div>
                @endif
            </div>
        </div>
        
        <div class="row">
            <div class="col-xl-12">
                <div class="project-details__pagination-box">
                    <ul class="project-details__pagination list-unstyled clearfix">
                        <li class="next">
                            <div class="icon">
                                @if($previous_slug == '')
                                <a href="javascript:;" aria-label="Previous"><i class="lnr lnr-icon-arrow-left"></i></a>
                                @else
                                <a href="{{ route('portfolio',$previous_slug) }}" aria-label="Previous"><i class="lnr lnr-icon-arrow-left"></i></a>
                                @endif
                            </div>
                            <div class="content">{{ __('Previous') }}</div>
                        </li>
                        <li class="count"><a href="#"></a></li>
                        <li class="count"><a href="#"></a></li>
                        <li class="count"><a href="#"></a></li>
                        <li class="count"><a href="#"></a></li>
                        <li class="previous">
                            <div class="content">{{ __('Next') }}</div>
                            <div class="icon">
                                @if($next_slug == '')
                                <a href="javascript:;" aria-label="Previous"><i class="lnr lnr-icon-arrow-right"></i></a>
                                @else
                                <a href="{{ route('portfolio',$next_slug) }}" aria-label="Previous"><i class="lnr lnr-icon-arrow-right"></i></a>
                                @endif
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</section>
<!-- // Portfolio Detail Section -->


<!-- Portfolios Section -->
@if($global_other_page_items->page_portfolio_single_bottom_status == "Show")
<section class="projects-section-two pt-0">
    <div class="auto-container">
        <div class="sec-title text-center">
            <span class="sub-title">{{ $global_other_page_items->page_portfolio_single_bottom_subheading }}</span>
            <h2>{{ $global_other_page_items->page_portfolio_single_bottom_heading }}</h2>
        </div>

        <div class="carousel-outer">
            <div class="projects-carousel owl-carousel owl-theme">
                @foreach ($portfolios_bottom as $row)
                <div class="project-block">
                    <div class="inner-box">
                        <div class="image-box">
                            <figure class="image"><a href="{{ route('portfolio',$row->slug) }}"><img src="{{ asset('uploads/'.$row->photo) }}" alt=""></a>
                            </figure>
                            <div class="info-box">
                                <a href="{{ route('portfolio',$row->slug) }}" class="read-more"><i class="fa fa-long-arrow-alt-right"></i></a>
                                <h6 class="title"><a href="{{ route('portfolio',$row->slug) }}">{{ $row->name }}</a></h6>
                            </div>
                        </div>
                    </div>
                </div>
                @endforeach
            </div>
        </div>
    </div>
</section>
@endif
<!-- // Portfolios Section -->
@endsection