@extends('backoffice.layouts.app')
@section('contents')
    <div class="py-4">
        <nav aria-label="breadcrumb" class="d-none d-md-inline-block">
            <ol class="breadcrumb breadcrumb-dark breadcrumb-transparent">
                <li class="breadcrumb-item">
                    <a href="{{ route('admin.dashboard') }}">
                        <svg class="icon icon-xxs" fill="none" stroke="currentColor" viewBox="0 0 24 24"
                            xmlns="http://www.w3.org/2000/svg">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
                                d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6">
                            </path>
                        </svg>
                    </a>
                </li>
                <li class="breadcrumb-item active" aria-current="page">Term And Conditions</li>
            </ol>
        </nav>
        <div class="d-flex justify-content-between w-100 flex-wrap">
            <div class="mb-3 mb-lg-0">
                <h1 class="h4">Term And Conditions</h1>
                {{-- <p class="mb-0">Dozens of reusable components built to provide buttons, alerts, popovers, and more.</p> --}}
            </div>
            <div>
                {{-- <a href="https://themesberg.com/docs/volt-bootstrap-5-dashboard/components/tables/"
                    class="btn btn-outline-gray-600 d-inline-flex align-items-center">
                    <svg class="icon icon-xs me-1" fill="currentColor" viewBox="0 0 20 20"
                        xmlns="http://www.w3.org/2000/svg">
                        <path fill-rule="evenodd"
                            d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-3a1 1 0 00-.867.5 1 1 0 11-1.731-1A3 3 0 0113 8a3.001 3.001 0 01-2 2.83V11a1 1 0 11-2 0v-1a1 1 0 011-1 1 1 0 100-2zm0 8a1 1 0 100-2 1 1 0 000 2z"
                            clip-rule="evenodd"></path>
                    </svg>
                    Bootstrap Tables Docs
                </a> --}}
            </div>
        </div>
    </div>
    <div class="card border-0 shadow components-section">
        <div class="card-body">
            <div class="row">
                 <form action="{{ route('admin.termandcondition.store') }}" method="POST">
                    @csrf
                    <div class="col-lg-12 col-sm-12">
                        <!-- Page Title -->
                        <div class="mb-4">
                            <label for="page_title">Page Title</label>
                            <input type="text" name="title" class="form-control" id="page_title"
                                value="{{ old('title', $termandcondition->title ?? '') }}" placeholder="Enter here">
                        </div>

                        <!-- Page Banner -->
                        <div class="mb-4">
                            <label for="page_banner">Page Heading</label>
                            <input type="text" name="banner" class="form-control" id="page_banner"
                                value="{{ old('banner', $termandcondition->banner ?? '') }}" placeholder="Enter here">
                        </div>

                        <!-- Page Description -->
                        <div class="mb-4">
                            <label for="page_description">Page Description</label>
                            <textarea class="summernote" name="description">{{ old('description', $termandcondition->description ?? '') }}</textarea>
                        </div>

                        <!-- Submit -->
                        <div class="mb-4">
                            <button class="btn btn-gray-800 mt-2 animate-up-2 w-100" type="submit">Save</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
@endsection
