@extends('layouts.admin')
@section('title', $t)
@section('content')
<div class="page-content-wrapper">
    <div class="container-fluid">
        <div class="row">
            <div class="col-sm-12">
                <div class="page-title-box">

                    <h4>{{ $t }}</h4>

                </div>
            </div>
        </div>

        <div class="row">
            <div class="col-lg-12">
                <div class="row">
                    <div class="col-md-4">
                        <div class="card">
                            <div class="card-header">
                                <h4>Jump To</h4>
                            </div>
                            <div class="card-body">
                                <ul class="nav nav-pills flex-column">
                                    <li class="nav-item"><a href="{{ route('setting', 'app-setting') }}"
                                            class="nav-link ">App Setting</a></li>
                                    <li class="nav-item"><a href="{{ route('setting', 'general-setting') }}"
                                            class="nav-link active">General</a></li>
                                    <li class="nav-item"><a href="{{ route('setting', 'level-setting') }}"
                                            class="nav-link">{{ __('Level') }}</a></li>
                                </ul>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-8">
                        <form id="setting-form" action="{{ route('settings/auth-settings/update') }}"
                            enctype="multipart/form-data" method="POST">
                            @csrf
                            <div class="card" id="settings-card">
                                <div class="card-header">
                                    <h4> {{ $t }}</h4>
                                </div>
                                <div class="card-body">


                                    <div class="form-group">
                                        <label for="date_format">{{ __('Date Format') }}</label>
                                        <select name="date_format" class="form-control">
                                            <option value="M j, Y" {{ Utility::getsettings('date_format') == 'M j, Y' ? 'selected' : '' }}>{{ __('Jan 1, 2020') }}</option>
                                            <option value="d-M-y" {{ Utility::getsettings('date_format') == 'd-M-y' ? 'selected' : '' }}>{{ __('01-Jan-20') }}</option>
                                        </select>
                                    </div>
                                    <div class="form-group">
                                        <label for="time_format">{{ __('Time Format') }}</label>
                                        <select name="time_format" class="form-control">
                                            <option value="g:i A" {{ Utility::getsettings('time_format') == 'g:i A' ? 'selected' : '' }}>{{ __('hh:mm AM/PM') }}</option>
                                            <option value="H:i:s" {{ Utility::getsettings('time_format') == 'H:i:s' ? 'selected' : '' }}>{{ __('HH:mm:ss') }}</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="card-footer bg-whitesmoke text-md-right">
                                    <button class="btn btn-primary" type="submit" id="save-btn">{{ __('Save Changes') }}</button>
                                    <a href="{{ route('settings') }}" class="btn btn-secondary">{{ __('Cancel') }}</a>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>

@endsection