Skip to content

Commit

Permalink
Fixe Switch /issues/589
Browse files Browse the repository at this point in the history
  • Loading branch information
SMEWebify committed Dec 26, 2024
1 parent a9c8f70 commit ebd6400
Show file tree
Hide file tree
Showing 17 changed files with 192 additions and 107 deletions.
5 changes: 3 additions & 2 deletions resources/views/accounting/accounting-index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@
<div class="form-group">
<div class="col-4 text-left"><label for="month_end_update{{ $PaymentCondition->id }}" class="col-form-label">{{ __('general_content.end_of_month_trans_key') }}</label></div>
<div class="col-8">

@if($PaymentCondition->month_end == 1)
<x-adminlte-input-switch id="month_end_update{{ $PaymentCondition->id }}" name="month_end_update" data-on-text="{{ __('general_content.yes_trans_key') }}" data-off-text="{{ __('general_content.no_trans_key') }}" data-on-color="teal" checked/>
<x-adminlte-input-switch id="month_end_update{{ $PaymentCondition->id }}" name="month_end_update" data-on-text="{{ __('general_content.yes_trans_key') }}" data-on-text="{{ __('general_content.yes_trans_key') }}" data-off-text="{{ __('general_content.no_trans_key') }}" data-on-color="teal" is-checked="true"/>
@else
<x-adminlte-input-switch id="month_end_update{{ $PaymentCondition->id }}" name="month_end_update" data-on-text="{{ __('general_content.yes_trans_key') }}" data-off-text="{{ __('general_content.no_trans_key') }}" data-on-color="teal" />
@endif
Expand Down Expand Up @@ -164,7 +165,7 @@
<div class="form-group">
<label for="month_end" class="col-form-label">{{ __('general_content.end_of_month_trans_key') }}</label>
<x-adminlte-input-switch name="month_end" id="month_end" data-on-text="{{ __('general_content.yes_trans_key') }}" data-off-text="{{ __('general_content.no_trans_key') }}"
data-on-color="teal" checked/>
data-on-color="teal" is-checked="true"/>
</div>
<x-slot name="footerSlot">
<x-adminlte-button class="btn-flat" type="submit" label="{{ __('general_content.submit_trans_key') }}" theme="danger" icon="fas fa-lg fa-save"/>
Expand Down
8 changes: 4 additions & 4 deletions resources/views/admin/factory-import-export.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<label class="col-form-label" for="companie_header">{{ __('general_content.header_line_ask_trans_key') }}</label>
</div>
<div class="col-8">
<x-adminlte-input-switch name="header" id="companie_header" data-on-text="{{ __('general_content.yes_trans_key') }}" data-off-text="{{ __('general_content.no_trans_key') }}" data-on-color="teal" checked/>
<x-adminlte-input-switch name="header" id="companie_header" data-on-text="{{ __('general_content.yes_trans_key') }}" data-off-text="{{ __('general_content.no_trans_key') }}" data-on-color="teal" is-checked="true"/>
</div>
</div>
@php
Expand Down Expand Up @@ -115,7 +115,7 @@
<label class="col-form-label" for="quote_header">{{ __('general_content.header_line_ask_trans_key') }}</label>
</div>
<div class="col-8">
<x-adminlte-input-switch name="header" id="quote_header" data-on-text="{{ __('general_content.yes_trans_key') }}" data-off-text="{{ __('general_content.no_trans_key') }}" data-on-color="teal" checked/>
<x-adminlte-input-switch name="header" id="quote_header" data-on-text="{{ __('general_content.yes_trans_key') }}" data-off-text="{{ __('general_content.no_trans_key') }}" data-on-color="teal" is-checked="true"/>
</div>
</div>
@php
Expand Down Expand Up @@ -179,7 +179,7 @@
<label class="col-form-label" for="order_header">{{ __('general_content.header_line_ask_trans_key') }}</label>
</div>
<div class="col-8">
<x-adminlte-input-switch name="header" id="order_header" data-on-text="{{ __('general_content.yes_trans_key') }}" data-off-text="{{ __('general_content.no_trans_key') }}" data-on-color="teal" checked/>
<x-adminlte-input-switch name="header" id="order_header" data-on-text="{{ __('general_content.yes_trans_key') }}" data-off-text="{{ __('general_content.no_trans_key') }}" data-on-color="teal" is-checked="true"/>
</div>
</div>
@php
Expand Down Expand Up @@ -296,7 +296,7 @@
<label class="col-form-label" for="product_header">{{ __('general_content.header_line_ask_trans_key') }}</label>
</div>
<div class="col-8">
<x-adminlte-input-switch name="header" id="product_header" data-on-text="{{ __('general_content.yes_trans_key') }}" data-off-text="{{ __('general_content.no_trans_key') }}" data-on-color="teal" checked/>
<x-adminlte-input-switch name="header" id="product_header" data-on-text="{{ __('general_content.yes_trans_key') }}" data-off-text="{{ __('general_content.no_trans_key') }}" data-on-color="teal" is-checked="true"/>
</div>
</div>
@php
Expand Down
17 changes: 9 additions & 8 deletions resources/views/companies/companies-show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,12 @@
<div class="form-group col-md-2">
<label for="companies_notification">{{__('general_content.active_trans_key') }}</label>
<div class="input-group">
@if($Companie->active == 1)
<x-adminlte-input-switch name="active" data-on-text="{{ __('general_content.yes_trans_key') }}" data-off-text="{{ __('general_content.no_trans_key') }}" data-on-color="teal" checked />
@else
<x-adminlte-input-switch name="active" data-on-text="{{ __('general_content.yes_trans_key') }}" data-off-text="{{ __('general_content.no_trans_key') }}" data-on-color="teal" />
@endif
<x-adminlte-input-switch name="active"
data-on-text="{{ __('general_content.yes_trans_key') }}"
data-off-text="{{ __('general_content.no_trans_key') }}"
data-on-color="teal"
data-off-color="danger"
is-checked="{{ $Companie->active }}" />
</div>
</div>
@if($Companie->client_type == 1)
Expand Down Expand Up @@ -338,7 +339,7 @@
<label for="quoted_delivery_note">{{ __('general_content.quoted_delivery_note_trans_key') }}</label>
<div class="input-group">
@if($Companie->quoted_delivery_note == 1)
<x-adminlte-input-switch name="quoted_delivery_note" data-on-text="{{ __('general_content.yes_trans_key') }}" data-off-text="{{ __('general_content.no_trans_key') }}" data-on-color="teal" checked />
<x-adminlte-input-switch name="quoted_delivery_note" data-on-text="{{ __('general_content.yes_trans_key') }}" data-off-text="{{ __('general_content.no_trans_key') }}" data-on-color="teal" is-checked="true" />
@else
<x-adminlte-input-switch name="quoted_delivery_note" data-on-text="{{ __('general_content.yes_trans_key') }}" data-off-text="{{ __('general_content.no_trans_key') }}" data-on-color="teal" />
@endif
Expand Down Expand Up @@ -503,7 +504,7 @@
<div class="col-4 text-left"><label for="defaultAddress{{ $Address->id }}" class="col-form-label">{{ __('general_content.by_default_trans_key') }}</label></div>
<div class="col-8">
@if($Address->default == 1)
<x-adminlte-input-switch id="defaultAddress{{ $Address->id }}" name="defaultAdress_update" data-on-text="{{ __('general_content.yes_trans_key') }}" data-off-text="{{ __('general_content.no_trans_key') }}" data-on-color="teal" checked/>
<x-adminlte-input-switch id="defaultAddress{{ $Address->id }}" name="defaultAdress_update" data-on-text="{{ __('general_content.yes_trans_key') }}" data-off-text="{{ __('general_content.no_trans_key') }}" data-on-color="teal" is-checked="true" />
@else
<x-adminlte-input-switch id="defaultAddress{{ $Address->id }}" name="defaultAdress_update" data-on-text="{{ __('general_content.yes_trans_key') }}" data-off-text="{{ __('general_content.no_trans_key') }}" data-on-color="teal" />
@endif
Expand Down Expand Up @@ -715,7 +716,7 @@
<div class="col-4 text-left"><label for="defaultContact{{ $Contact->id }}" class="col-form-label">{{ __('general_content.by_default_trans_key') }}</label></div>
<div class="col-8">
@if($Contact->default == 1)
<x-adminlte-input-switch id="defaultContact{{ $Contact->id }}" name="defaultContact_update" data-on-text="{{ __('general_content.yes_trans_key') }}" data-off-text="{{ __('general_content.no_trans_key') }}" data-on-color="teal" checked/>
<x-adminlte-input-switch id="defaultContact{{ $Contact->id }}" name="defaultContact_update" data-on-text="{{ __('general_content.yes_trans_key') }}" data-off-text="{{ __('general_content.no_trans_key') }}" data-on-color="teal" is-checked="true" />
@else
<x-adminlte-input-switch id="defaultContact{{ $Contact->id }}" name="defaultContact_update" data-on-text="{{ __('general_content.yes_trans_key') }}" data-off-text="{{ __('general_content.no_trans_key') }}" data-on-color="teal" />
@endif
Expand Down
Loading

0 comments on commit ebd6400

Please sign in to comment.