@extends('layouts.app_admin')
@section('title', 'Blogs')
@push('css')
@endpush

@section('content')

<!-- Main Content -->
<div class="main-content">
    <section class="section">
        <div class="col-12 section-header">
            <div class="col-6">
                <h1>Details</h1>
            </div>

        </div>
        @if ($errors->any())
        <div class="col-sm-12">
            <div class="alert  alert-warning alert-dismissible fade show" role="alert">
                @foreach ($errors->all() as $error)
                <span>
                    <labelTxt>{{ $error }}</labelTxt>
                </span>
                @endforeach
                <button type="button" class="close" data-dismiss="alert" aria-labelHeader="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
        </div>
        @endif

        @include('flash-message')

        <div class="section-body">
            <div class="col-12">
                <div class="card">
                    {{-- {{ route('product.store') }} --}}
                    <div class="row">
                        <div class="col-lg-8">
                            <ul class="nav nav-tabs" id="myTabs">
                                <li class="nav-item">
                                    <a class="nav-link active" id="english-tab" data-toggle="tab" href="#english-section">English</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" id="arabic-tab" data-toggle="tab" href="#arabic-section">Arabic</a>
                                </li>
                            </ul>

                            <div class="tab-content">
                                <div class="tab-pane fade show active" id="english-section">
                                    <!-- English section content -->
                                    <div class="form-group custom_px">
                                        <labelHeader for="vision text">Title (English)</labelHeader>
                                        <labelTxt>
                                            @if ($data->title_en != null)
                                            {{ $data->title_en }}
                                            @else
                                            @endif
                                        </labelTxt>
                                    </div>



                                    <div class="form-group custom_px">
                                        <labelHeader for="vision text">Details (English)</labelHeader>
                                        <labelTxt>
                                            @if ($data->details_en != null)
                                            {!! $data->details_en !!}
                                            @else
                                            No Text
                                            @endif
                                        </labelTxt>
                                    </div>
                                </div>

                                <div class="tab-pane fade" id="arabic-section">
                                    <!-- Arabic section content -->
                                    <div class="form-group custom_px">
                                        <labelHeader for="vision text">Title (Arabic)</labelHeader>
                                        <labelTxt>
                                            @if ($data->title_ar != null)
                                            {{ $data->title_ar }}
                                            @else
                                            @endif
                                        </labelTxt>
                                    </div>

                                    <div class="form-group custom_px">
                                        <labelHeader for="vision text">Details (Arabic)</labelHeader>
                                        <labelTxt>
                                            @if ($data->details_ar != null)
                                            {!! $data->details_ar !!}
                                            @else
                                            No Text
                                            @endif
                                        </labelTxt>
                                    </div>
                                </div>
                            </div>
                        </div>


                        <div class="col-lg-4">
                            <div class="form-group  custom_px">
                                <labelHeader for="image">Image</labelHeader>
                                @if ($data->image != null)
                                <img src="{{ asset('images/blog/' . $data->image) }}" width="400px" alt="user photo" /><br>
                                @else
                                No Image File
                                @endif

                            </div>
                            <div class="form-group custom_px">
                                <labelHeader for="vision text">Author Name</labelHeader>
                                <labelTxt>
                                    @if ($data->author_name != null)
                                    {{ $data->author_name }}
                                    @else
                                    @endif
                                </labelTxt>
                            </div>
                        </div>

                    </div>
                </div>

            </div>
        </div>

    </section>


    <!-- End -->
</div>



@endsection

@section('extra-js')


@endsection