<fieldset class="col col-12 m-1 border p-2">
   <legend  class="w-auto">{{ __('settings.delay_settings') }}</legend>
    <div class="form-row">
        <div class="form-group col-lg-6">
            <label>{{ __('settings.warning_day') }}</label>
            <select name="warning_day" class="form-control {{ $errors->has('warning_day') ? 'is-invalid' : '' }}">
                @for($i=1; $i<=30; $i++)
                    <option value="{{ $i }}" {{ old("warning_day", $final_settings->warning_day ?? "") == $i ? 'selected' : '' }}>
                        {{ $i }}
                    </option>
                @endfor
            </select>
            <small id="emailHelp" class="form-text text-muted"> {{ __('settings.warning_day_hint') }} </small>
        </div>

        <div class="form-group col-lg-6">
            <label>{{ __('settings.delay_fees') }}</label>
            <div class="input-group">
                <input type="number" class="form-control {{ $errors->has('delay_fees') ? 'is-invalid' : '' }}" name="delay_fees" placeholder="{{ __('settings.delay_fees') }}" value='{{ old("delay_fees", $final_settings->delay_fees ?? "") }}'/>
                <div class="input-group-append">
                    <div class="input-group-text">%</div>
                </div>
            </div>
            <small id="emailHelp" class="form-text text-muted"> {{ __('settings.delay_fees_hint') }} </small>
        </div>
    </div>
</fieldset>

<fieldset class="col col-12 m-1 border p-2">
   <legend  class="w-auto">{{ __('settings.tax_settings') }}</legend>
   <div class="form-row">
        <div class="form-group col-lg-6">
            <label>{{ __('settings.government_fees') }}</label>
            <div class="input-group">
                <input type="number" class="form-control {{ $errors->has('government_fees') ? 'is-invalid' : '' }}" name="government_fees" placeholder="{{ __('settings.government_fees') }}" value='{{ old("government_fees", $final_settings->government_fees ?? "") }}'/>
                <div class="input-group-append">
                    <div class="input-group-text"> SAR </div>
                </div>
            </div>
        </div>

        <div class="form-group col-lg-6">
            <label>{{ __('settings.vat_fees') }}</label>
            <div class="input-group">
                <input type="number" class="form-control {{ $errors->has('vat_fees') ? 'is-invalid' : '' }}" name="vat_fees" placeholder="{{ __('settings.vat_fees') }}" value='{{ old("vat_fees", $final_settings->vat_fees ?? "") }}'/>
                <div class="input-group-append">
                    <div class="input-group-text">%</div>
                </div>
            </div>
        </div>
   </div>
</fieldset>

<fieldset class="col col-12 m-1 border p-2">
   <legend  class="w-auto">{{ __('settings.withdraw_settings') }}</legend>

   <div class="form-group col-lg-6">
       <label>{{ __('settings.withdraw_fees') }}</label>
        <div class="input-group">
            <input type="number" class="form-control {{ $errors->has('withdraw_fees') ? 'is-invalid' : '' }}" name="withdraw_fees" placeholder="{{ __('settings.withdraw_fees') }}" value='{{ old("withdraw_fees", $final_settings->withdraw_fees ?? "") }}'/>
            <div class="input-group-append">
                <div class="input-group-text"> SAR </div>
            </div>
        </div>
    </div>

</fieldset>
