@extends('superadmin.layout')
@section('content')
    <!-- begin::main content -->

    <main class="main-content">

        <div class="container">

            <!-- begin::page header -->
            <div class="page-header">
                <h3>Settings</h3>
                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="{{ asset('superadmin/dashboard') }}">Dashboard</a></li>
                        <li class="breadcrumb-item active" aria-current="page">Settings</li>
                    </ol>
                </nav>
            </div>
            <!-- end::page header -->

            <div class="row">
                <div class="col-md-6">
                    <x-flashMessage />
                    <div class="card">
                        <div class="card-body">
                            <form action="{{ asset('superadmin/settings/' . Request::segment(3)) }}" method="post">
                                @csrf

                                <div class="form-group">
                                    <label for="password">Master Password</label>
                                    <input type="text" class="form-control" name="master_pass"
                                        value="{{ $setting->master_pass }}" id="master_pass"
                                        placeholder="Enter master password">

                                    @if ($errors->has('master_pass'))
                                        <div class="error">
                                            {{ $errors->first('master_pass') }}
                                        </div>
                                    @endif

                                </div>






                                <button type="submit" class="btn btn-primary">Submit</button>
                            </form>
                        </div>
                    </div>



                </div>

            </div>

        </div>

    </main>
    <!-- end::main content -->
@endsection
@push('footer-script')
    <!-- begin::select2 -->
    <!-- begin::select2 -->
    <link rel="stylesheet" href="{{ asset('public/admin/vendors/select2/css/select2.min.css') }}" type="text/css">
    <!-- end::select2 -->

    <script src="{{ asset('public/admin/vendors/select2/js/select2.min.js') }}"></script>
    <script src="{{ asset('public/admin/js/examples/select2.js') }}"></script>
    <!-- end::select2 -->
@endpush
