@extends('layouts.app_admin')
@section('title', 'Services')
@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-5">


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

                                    </labelTxt>
                                </div>

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

                                    </labelTxt>
                                </div>


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

                                    </labelTxt>
                                </div>



                            </div>

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

                                </div>

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

                                </div>
                            </div>

                        </div>
                    </div>

                </div>
            </div>

        </section>


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



@endsection

@section('extra-js')


@endsection
