@extends('Admin.layouts.master')

@section('content')
    @php
        $currentPage = 'manage-rules';
    @endphp



    <div class="layout-px-spacing">
        <div class="middle-content container-xxl p-0">
            <div class="row layout-top-spacing ">
                <div class="top-tabel">
                    <div class="row">
                        <div class="col-md-12 left d-flex align-items-center justify-content-between" style="gap: 15px;">
                            <h6 class="card-title pl-2"> Manage Redemptions Rules </h6>
                            <a class="view-details-btn mr-2" href="{{ route('rules_edit', ['id' => $data[0]['id']]) }}"
                                data-id="{{ $data[0]['id'] }}">
                                <span>Edit</span>
                            </a>
                        </div>
                    </div>


                </div>
                <div class="col-xl-12 col-lg-12 col-sm-12 layout-spacing">
                    <div class="widget-content widget-content-area br-8 position-btn p-0">
                        @csrf
                        <div class="view-details">
                            <div class="simple-tab">
                                <div class="tab-content" id="myTabContent">
                                    <div class="tab-pane fade show active" id="home-tab-pane" role="tabpanel"
                                        aria-labelledby="home-tab" tabindex="0">
                                        <div class="row">
                                            <div class="col-md-12">
                                                <h4>
                                                    What's Inside ?
                                                </h4>
                                                <p>
                                                    {!! $data[0]['whats_inside'] !!}
                                                </p>
                                                <h4>
                                                    Rules
                                                </h4>
                                                <p>
                                                    {!! $data[0]['rules'] !!}
                                                </p>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
@section('section_script')
@endsection
