<!-- resources/views/your-page.blade.php -->
@extends('layouts.theme1')

@section('title', 'Dashboard')

@section('content')
    <!-- Contenu de votre page -->
    
    <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/dt-1.11.5/datatables.min.css"/>

    <div class="row">
        <div class="col-12">
            <div class="card">
            <div class="border-bottom title-part-padding">
                <h4 class="card-title mb-0">  Edit Setting </h4>
            </div>
            <div class="card-body">
                <form action="{{ route('admin.settings.update', $setting->id) }}" method="POST">
                    @csrf
                    @method('PUT')
                    <div class="mb-3">
                        <label for="license_validity_in_months" class="form-label">License Validity (in months)</label>
                        <input type="number" class="form-control" id="license_validity_in_months" name="license_validity_in_months" value="{{ old('license_validity_in_months', $setting->license_validity_in_months) }}" required>
                    </div>
                    <!-- Ajoutez d'autres champs de formulaire si nécessaire -->
                    <button type="submit" class="btn btn-primary">Update</button>
                    <a href="{{ route('admin.settings.index') }}" class="btn btn-secondary">Cancel</a>
                </form>
            </div>
            <div class="card-footer">
                <a href="{{ route('admin.settings.edit', $setting->id) }}" class="btn btn-primary">Modifier</a>
            </div>
            </div>
        </div>
    </div>


    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>

    <script type="text/javascript" src="https://cdn.datatables.net/v/dt/dt-1.11.5/datatables.min.js"></script>
 
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"></script>  
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.19.0/jquery.validate.js"></script>

@endsection
