@extends('layouts.app_admin')
@section('title', 'Slider Image')
@push('css')
    <style>
        .side-by-side {
            display: flex;
            justify-content: space-between;
            gap: 20px;
        }

        .side-by-side .column {
            width: 48%;
            /* Adjust width as needed */
        }
    </style>
@endpush

@section('content')

    <!-- Main Content -->
    <div class="main-content">
        <section class="section">
            <div class="col-12 section-header">
                <div class="col-6">
                    <h1>Slider Image 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>
                                <p>{{ $error }}</p>
                            </span>
                        @endforeach
                        <button type="button" class="close" data-dismiss="alert" aria-label="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">
                        <div class="row card-body text-center">
                            <div class="col-lg-4">
                                <div class="form-group custom_px">
                                    @if ($sliderImage->image != null)
                                        <img src="{{ asset('images/sliderImage/' . $sliderImage->image) }}" height="500"
                                            alt="user photo" style="padding-left: 0px;" /><br>
                                    @else
                                        No Image File
                                    @endif
                                </div>
                            </div>
                        </div>

                        <!-- Side-by-Side Section -->
                        <div class="row card-body side-by-side">
                            <!-- English Column -->
                            <div class="column col-lg-6">
                                <div class="form-group custom_px">
                                    <labelHeader for="vision text">Text One (English)</labelHeader>
                                    <labelTxt>
                                        @if ($sliderImage->text_one_en != null)
                                            {{ $sliderImage->text_one_en }}
                                        @else
                                            No Text
                                        @endif
                                    </labelTxt>
                                </div>

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

                            <!-- Bengali Column -->
                            <div class="column col-lg-6">
                                <div class="form-group custom_px">
                                    <labelHeader for="vision text">Text One (Bengali)</labelHeader>
                                    <labelTxt>
                                        @if ($sliderImage->text_one_bn != null)
                                            {{ $sliderImage->text_one_bn }}
                                        @else
                                            No Text
                                        @endif
                                    </labelTxt>
                                </div>

                                <div class="form-group custom_px">
                                    <labelHeader for="vision text">Text Two (Bengali)</labelHeader>
                                    <labelTxt>
                                        @if ($sliderImage->text_two_bn != null)
                                            {{ $sliderImage->text_two_bn }}
                                        @else
                                            No Text
                                        @endif
                                    </labelTxt>
                                </div>
                            </div>
                        </div>
                        <!-- End Side-by-Side Section -->
                    </div>
                </div>
            </div>
        </section>
        <!-- End -->
    </div>
@endsection

@section('extra-js')
@endsection
