@extends('layouts.app_admin')
@section('title', 'Reviews')
@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">Person Name</labelHeader>
                                    <labelTxt>
                                        @if ($data->name != null)
                                            {{ $data->name }}
                                        @else
                                        @endif

                                    </labelTxt>
                                </div>

                                {{-- <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">Review</labelHeader>
                                    <labelTxt>
                                        @if ($data->review != null)
                                            {{ $data->review }}
                                        @else
                                        @endif

                                    </labelTxt>
                                </div>


                               

                            </div>

                            <div class="col-lg-5">
                                <div class="form-group  custom_px">
                                    <labelHeader for="image">Rating</labelHeader>
                                    @if ($data->rating != null)
                                            {{ $data->rating }}
                                        @else
                                        @endif

                                </div>

                                {{-- <div class="form-group  custom_px">
                                    <labelHeader for="image">Date</labelHeader>
                                    @if ($data->created_at != null)
                                            {{ \Carbon\Carbon::parse($data->created_at)->format('l jS \of F Y') }}
                                        @else
                                        @endif

                                </div> --}}
                            </div>

                        </div>
                    </div>

                </div>
            </div>

        </section>


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



@endsection

@section('extra-js')


@endsection
