2026-03-15 17:08:23 +07:00
@ extends ( 'layouts.business.master' )
@ section ( 'title' )
{{ __ ( 'Settings' ) }}
@ endsection
@ section ( 'main_content' )
< div class = " erp-table-section " >
< div class = " container-fluid " >
< div class = " card shadow-sm " >
< div class = " card-bodys " >
< div class = " table-header p-16 " >
< h4 > {{ __ ( 'Settings' ) }} </ h4 >
</ div >
< div class = " order-form-section p-16 " >
< form action = " { { route('business.settings.update', $setting->id ?? 0) }} " method = " post " enctype = " multipart/form-data " class = " ajaxform_instant_reload " >
@ csrf
@ method ( 'put' )
< div class = " add-suplier-modal-wrapper d-block " >
< div class = " row " >
< div class = " col-lg-6 " >
< label class = " custom-top-label " > {{ __ ( 'Business Category' ) }} </ label >
< div class = " gpt-up-down-arrow position-relative " >
< select name = " business_category_id " class = " form-control form-selected " >
< option value = " " > {{ __ ( 'Select a category' ) }} </ option >
@ foreach ( $business_categories as $category )
< option value = " { { $category->id }} " @ selected ( $business -> business_category_id == $category -> id ) > {{ $category -> name }} </ option >
@ endforeach
</ select >
< span ></ span >
</ div >
</ div >
< div class = " col-lg-6 " >
< label > {{ __ ( 'Company / Business Name' ) }} </ label >
< div class = " d-flex align-items-center " >
< input type = " text " name = " companyName " value = " { { $business->companyName }} " class = " form-control me-2 " placeholder = " { { __('Enter Title') }} " >
< input id = " show_company_name " type = " checkbox " class = " delete-checkbox-item multi-delete " name = " show_company_name " value = " 1 " @ if ( ! empty ( $business -> meta [ 'show_company_name' ]) && $business -> meta [ 'show_company_name' ] == 1 ) checked @ endif >
</ div >
</ div >
< div class = " col-lg-6 mt-2 " >
< label > {{ __ ( 'Phone Number' ) }} </ label >
< div class = " d-flex align-items-center " >
< input type = " number " name = " phoneNumber " value = " { { $business->phoneNumber }} " class = " form-control me-2 " placeholder = " { { __('Enter Phone') }} " >
< input id = " show_phone_number " type = " checkbox " class = " delete-checkbox-item multi-delete " name = " show_phone_number " value = " 1 " @ if ( ! empty ( $business -> meta [ 'show_phone_number' ]) && $business -> meta [ 'show_phone_number' ] == 1 ) checked @ endif >
</ div >
</ div >
< div class = " col-lg-6 mt-2 " >
< label > {{ __ ( 'Address' ) }} </ label >
< div class = " d-flex align-items-center " >
< input type = " text " name = " address " value = " { { $business->address }} " class = " form-control me-2 " placeholder = " { { __('Enter Address') }} " >
< input id = " show_address " type = " checkbox " class = " delete-checkbox-item multi-delete " name = " show_address " value = " 1 " @ if ( ! empty ( $business -> meta [ 'show_address' ]) && $business -> meta [ 'show_address' ] == 1 ) checked @ endif >
</ div >
</ div >
< div class = " col-lg-6 mt-2 " >
< label > {{ __ ( 'Email' ) }} </ label >
< div class = " d-flex align-items-center " >
< input type = " email " name = " email " value = " { { $business->email }} " class = " form-control me-2 " placeholder = " { { __('Enter email') }} " >
< input id = " show_email " type = " checkbox " class = " delete-checkbox-item multi-delete " name = " show_email " value = " 1 " @ if ( ! empty ( $business -> meta [ 'show_email' ]) && $business -> meta [ 'show_email' ] == 1 ) checked @ endif >
</ div >
</ div >
< div class = " col-lg-6 mt-2 " >
< label class = " custom-top-label " > {{ __ ( 'Sale Rounding Option' ) }} </ label >
< div class = " gpt-up-down-arrow position-relative " >
< select name = " sale_rounding_option " class = " form-control form-selected " >
< option value = " none " @ selected (( $setting -> value [ 'sale_rounding_option' ] ? ? null ) == 'none' ) > {{ __ ( 'None' ) }} </ option >
< option value = " round_up " @ selected (( $setting -> value [ 'sale_rounding_option' ] ? ? null ) == 'round_up' ) > {{ __ ( 'Round Up to whole number' ) }} </ option >
< option value = " nearest_whole_number " @ selected (( $setting -> value [ 'sale_rounding_option' ] ? ? null ) == 'nearest_whole_number' ) > {{ __ ( 'Round to nearest whole number' ) }} </ option >
< option value = " nearest_0.05 " @ selected (( $setting -> value [ 'sale_rounding_option' ] ? ? null ) == 'nearest_0.05' ) > {{ __ ( 'Round to nearest decimal (0.05)' ) }} </ option >
< option value = " nearest_0.1 " @ selected (( $setting -> value [ 'sale_rounding_option' ] ? ? null ) == 'nearest_0.1' ) > {{ __ ( 'Round to nearest decimal (0.1)' ) }} </ option >
< option value = " nearest_0.5 " @ selected (( $setting -> value [ 'sale_rounding_option' ] ? ? null ) == 'nearest_0.5' ) > {{ __ ( 'Round to nearest decimal (0.5)' ) }} </ option >
</ select >
< span ></ span >
</ div >
</ div >
< div class = " col-lg-6 mt-2 " >
< label > {{ __ ( 'VAT/GST Title' ) }} </ label >
< div class = " d-flex align-items-center " >
< input type = " text " name = " vat_name " value = " { { $business->vat_name }} " class = " form-control me-2 " placeholder = " { { __('Enter VAT/GST Title') }} " >
</ div >
</ div >
< div class = " col-lg-6 mt-2 " >
< label > {{ __ ( 'VAT/GST Number' ) }} </ label >
< div class = " d-flex align-items-center " >
< input type = " text " name = " vat_no " value = " { { $business->vat_no }} " class = " form-control me-2 " placeholder = " { { __('Enter VAT/GST Number') }} " >
< input id = " show_vat " type = " checkbox " class = " delete-checkbox-item multi-delete " name = " show_vat " value = " 1 " @ if ( ! empty ( $business -> meta [ 'show_vat' ]) && $business -> meta [ 'show_vat' ] == 1 ) checked @ endif >
</ div >
</ div >
< div class = " col-lg-6 mt-2 " >
< label class = " custom-top-label " > {{ __ ( 'Product Profit Option' ) }} </ label >
< div class = " gpt-up-down-arrow position-relative " >
< select name = " product_profit_option " class = " form-control form-selected " >
< option value = " markup " @ selected (( $setting -> value [ 'product_profit_option' ] ? ? null ) == 'markup' ) >
{{ __ ( 'Markup (Profit based on Purchase Price)' ) }} 🔹 {{ __ ( 'Default' ) }}
</ option >
< option value = " margin " @ selected (( $setting -> value [ 'product_profit_option' ] ? ? null ) == 'margin' ) >
{{ __ ( 'Margin (Profit based on Selling Price)' ) }}
</ option >
</ select >
< span ></ span >
</ div >
</ div >
< div class = " col-lg-6 mt-2 " >
< label > {{ __ ( 'Post Sale Message' ) }} </ label >
< div class = " d-flex align-items-center " >
< input type = " text " name = " gratitude_message " value = " { { $setting->value ['gratitude_message'] ?? '' }} " class = " form-control me-2 " placeholder = " { { __('Enter message') }} " >
< input id = " show_gratitude_msg " type = " checkbox " class = " delete-checkbox-item multi-delete " name = " show_gratitude_msg " value = " 1 " @ if ( ! empty ( $setting -> value [ 'show_gratitude_msg' ]) && $setting -> value [ 'show_gratitude_msg' ] == 1 ) checked @ endif >
</ div >
</ div >
< div class = " col-lg-6 mt-2 " >
< label > {{ __ ( 'Invoice Note Label' ) }} </ label >
< div class = " d-flex align-items-center " >
< input type = " text " name = " note_label " value = " { { $setting->value ['note_label'] ?? '' }} " class = " form-control me-2 " placeholder = " { { __('Enter label') }} " >
</ div >
</ div >
< div class = " col-lg-6 mt-2 " >
< label > {{ __ ( 'Invoice Note' ) }} </ label >
< div class = " d-flex align-items-center " >
< input type = " text " name = " note " value = " { { $setting->value ['note'] ?? '' }} " class = " form-control me-2 " placeholder = " { { __('Enter note') }} " >
< input id = " show_note " type = " checkbox " class = " delete-checkbox-item multi-delete " name = " show_note " value = " 1 " @ if ( ! empty ( $setting -> value [ 'show_note' ]) && $setting -> value [ 'show_note' ] == 1 ) checked @ endif >
</ div >
</ div >
< div class = " col-lg-6 mt-2 " >
< label > {{ __ ( 'Warranty Void Label' ) }} </ label >
< div class = " d-flex align-items-center " >
< input type = " text " name = " warranty_void_label " value = " { { $setting->value ['warranty_void_label'] ?? '' }} " class = " form-control me-2 " placeholder = " { { __('Enter label') }} " >
</ div >
</ div >
< div class = " col-lg-6 mt-2 " >
< label > {{ __ ( 'Warranty Void' ) }} </ label >
< div class = " d-flex align-items-center " >
< input type = " text " name = " warranty_void " value = " { { $setting->value ['warranty_void'] ?? '' }} " class = " form-control me-2 " placeholder = " { { __('Enter warranty void') }} " >
< input id = " show_warranty " type = " checkbox " class = " delete-checkbox-item multi-delete " name = " show_warranty " value = " 1 " @ if ( ! empty ( $setting -> value [ 'show_warranty' ]) && $setting -> value [ 'show_warranty' ] == 1 ) checked @ endif >
</ div >
</ div >
2026-05-14 11:55:22 +07:00
< div class = " col-lg-6 " >
< label class = " custom-top-label " > {{ __ ( 'Select Country' ) }} </ label >
< div class = " gpt-up-down-arrow position-relative " >
< select name = " country_id " id = " country_id " class = " form-control form-selected " >
< option value = " " > {{ __ ( 'Select a country' ) }} </ option >
@ foreach ( $countries as $country )
< option value = " { { $country->id }} " @ selected ( $business -> country_id == $country -> id ) > {{ $country -> name }} </ option >
@ endforeach
</ select >
< span ></ span >
</ div >
</ div >
< div class = " col-lg-6 " >
< label class = " custom-top-label " > {{ __ ( 'Select State' ) }} </ label >
< div class = " gpt-up-down-arrow position-relative " >
< select name = " state_id " id = " state_id " class = " form-control form-selected " data - selected = " { { $business->state_id ?? '' }} " >
< option value = " " > {{ __ ( 'Select a state' ) }} </ option >
</ select >
< span ></ span >
</ div >
</ div >
2026-03-15 17:08:23 +07:00
< div class = " col-lg-6 settings-image-upload mb-3 " >
< label class = " title " > {{ __ ( 'A4 Page Invoice Logo' ) }} </ label >
< div class = " upload-img-v2 " >
< label class = " upload-v4 settings-upload-v4 " >
< div class = " img-wrp " >
2026-05-14 11:55:22 +07:00
< img src = " { { Storage::url( $setting->value ['a4_invoice_logo'] ?? 'assets/images/icons/upload-icon.svg') }} " alt = " user " id = " a4_invoice_logo " >
2026-03-15 17:08:23 +07:00
</ div >
< input type = " file " name = " a4_invoice_logo " accept = " image/* " onchange = " document.getElementById('a4_invoice_logo').src = window.URL.createObjectURL(this.files[0]) " class = " form-control d-none " >
</ label >
</ div >
< input id = " show_a4_invoice_logo " type = " checkbox " class = " delete-checkbox-item multi-delete " name = " show_a4_invoice_logo " value = " 1 " @ if ( ! empty ( $setting -> value [ 'show_a4_invoice_logo' ]) && $setting -> value [ 'show_a4_invoice_logo' ] == 1 ) checked @ endif >
</ div >
< div class = " col-lg-6 settings-image-upload mb-3 " >
< label class = " title " > {{ __ ( 'Thermal Invoice Logo' ) }} </ label >
< div class = " upload-img-v2 " >
< label class = " upload-v4 settings-upload-v4 " >
< div class = " img-wrp " >
2026-05-14 11:55:22 +07:00
< img src = " { { Storage::url( $setting->value ['thermal_invoice_logo'] ?? 'assets/images/icons/upload-icon.svg') }} " alt = " user " id = " thermal_invoice_logo " >
2026-03-15 17:08:23 +07:00
</ div >
< input type = " file " name = " thermal_invoice_logo " accept = " image/* " onchange = " document.getElementById('thermal_invoice_logo').src = window.URL.createObjectURL(this.files[0]) " class = " form-control d-none " >
</ label >
</ div >
< input id = " show_thermal_invoice_logo " type = " checkbox " class = " delete-checkbox-item multi-delete " name = " show_thermal_invoice_logo " value = " 1 " @ if ( ! empty ( $setting -> value [ 'show_thermal_invoice_logo' ]) && $setting -> value [ 'show_thermal_invoice_logo' ] == 1 ) checked @ endif >
</ div >
< div class = " col-lg-6 settings-image-upload mb-3 " >
< label class = " title " > {{ __ ( 'Invoice Scanner Logo' ) }} </ label >
< div class = " upload-img-v2 " >
< label class = " upload-v4 settings-upload-v4 " >
< div class = " img-wrp " >
2026-05-14 11:55:22 +07:00
< img src = " { { Storage::url( $setting->value ['invoice_scanner_logo'] ?? 'assets/images/icons/upload-icon.svg') }} "
2026-03-15 17:08:23 +07:00
alt = " user " id = " invoice_scanner_logo " >
</ div >
< input type = " file " name = " invoice_scanner_logo " accept = " image/* "
onchange = " document.getElementById('invoice_scanner_logo').src = window.URL.createObjectURL(this.files[0]) "
class = " form-control d-none " >
</ label >
</ div >
< input id = " show_invoice_scanner_logo " type = " checkbox " class = " delete-checkbox-item multi-delete " name = " show_invoice_scanner_logo " value = " 1 " @ if ( ! empty ( $setting -> value [ 'show_invoice_scanner_logo' ]) && $setting -> value [ 'show_invoice_scanner_logo' ] == 1 ) checked @ endif >
</ div >
@ usercan ( 'manage-settings.update' )
< div class = " col-lg-12 " >
< div class = " text-center mt-5 " >
< button type = " submit " class = " theme-btn m-2 submit-btn " > {{ __ ( 'Update' ) }} </ button >
</ div >
</ div >
@ endusercan
</ div >
</ div >
</ form >
</ div >
</ div >
</ div >
</ div >
</ div >
2026-05-14 11:55:22 +07:00
< input type = " hidden " value = " { { route('business.get-states.index') }} " id = " get-state " >
2026-03-15 17:08:23 +07:00
@ endsection