@extends('admin.admin_master')
@section('admin')
<div class="page-content">
    <div class="container-fluid">
        <div class="row mb-4">
            <div class="col-12">
                <h4 class="page-title mb-1">Workflow Settings</h4>
                <p class="text-muted">Configure workflow module settings here.</p>
            </div>
        </div>
        <form method="POST" action="{{ route('workflow.settings.save') }}">
            @csrf
            <div class="card">
                <div class="card-body">
                    <div class="mb-3">
                        <label for="workflow_enabled" class="form-label">Enable Workflow</label>
                        <select class="form-select" id="workflow_enabled" name="workflow_enabled">
                            <option value="1">Enabled</option>
                            <option value="0">Disabled</option>
                        </select>
                    </div>
                    <div class="mb-3">
                        <label for="default_approver" class="form-label">Default Approver Role</label>
                        <input type="text" class="form-control" id="default_approver" name="default_approver" placeholder="e.g. Manager">
                    </div>
                    <div class="mb-3">
                        <label for="workflow_notification" class="form-label">Send Notifications</label>
                        <select class="form-select" id="workflow_notification" name="workflow_notification">
                            <option value="1">Yes</option>
                            <option value="0">No</option>
                        </select>
                    </div>
                </div>
                <div class="card-footer text-end">
                    <button type="submit" class="btn btn-primary">Save Settings</button>
                </div>
            </div>
        </form>
    </div>
</div>
@endsection
