@extends('Admin.layouts.master')

@section('content')
    @php
        $currentPage = 'manage-terms';
    @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"> Customer Terms & Conditions </h6>
                                <a class="view-details-btn mr-2"
                                href="{{ route('terms_edit', ['id' => $terms_condition[0]['id']]) }}"
                                data-id="{{ $terms_condition[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">
                                            <p>
                                                {!! $terms_condition[0]['message'] !!}
                                            </p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
                </div>
            </div>
        </div>


        <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"> Restaturant Terms & Conditions</h6>
                                <a class="view-details-btn mr-2"
                                href="{{ route('terms_edit_rest', ['id' => $terms_condition[1]['id']]) }}"
                                data-id="{{ $terms_condition[1]['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">
                                            <p>
                                                {!! $terms_condition[1]['message'] !!}
                                            </p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
                </div>
            </div>
        </div>


        @endsection
@section('section_script')
@endsection
