@php $light_logo = get_file(light_logo()).'?'.time(); $dark_logo = get_file(dark_logo()).'?'.time(); @endphp @extends('layouts.main') @section('page-title') {{ __('Settings')}} @endsection @section('page-breadcrumb') {{ __('Settings') }} @endsection @section('page-action') @endsection @section('content')
{{ __('Brand Settings') }}
{{ __('System Settings') }}
@if(Auth::user()->hasRole('company')) {{ __('Company Settings') }}
@php $active_module = ActivatedModule(); $dependency = explode(',','Account,Taskly'); @endphp @if(!empty(array_intersect($dependency,$active_module))) {{ __('Proposal Print Settings') }}
@stack('retainer_setting_sidebar') {{ __('Invoice Print Settings') }}
@endif @endif @stack('general_setting_sidebar') @stack('account_setting_sidebar') @stack('doubleentry_setting_sidebar') @stack('hrm_setting_sidebar') @stack('crm_setting_sidebar') @stack('pos_setting_sidebar') @stack('rotas_setting_sidebar') @stack('support_setting_sidebar') @stack('sales_setting_sidebar') @stack('holidayz_setting_sidebar') @stack('timetracker_setting_sidebar') {{ __('Email Settings') }}
{{ __('Email Notification Settings') }}
@if(Auth::user()->hasRole('super admin')) {{ __('Cookie Settings') }}
{{ __('Pusher Settings') }}
{{ __('SEO Settings') }}
{{ __('Cache Settings') }}
@endif @can('setting storage manage') {{ __('Storage Settings') }}
@endcan @if (module_is_active('AIAssistant') || module_is_active('AIDocument') || module_is_active('AIImage')) @can('api key setting manage') {{ __('Chat GPT Key Settings') }}
@endcan @endif @stack('company_setting_aftrer_site_setting_sidebar') {{-- Paymet section --}} {{ __('Bank Transfer') }}
@stack('payment_setting_sidebar')
{{ Form::open(['route' => ['settings.save'], 'enctype'=>'multipart/form-data','id'=>'setting-form']) }} @method('post')
{{ __('Brand Settings') }}
@can('setting logo manage')
{{__('Logo Dark')}}
{{__('Logo Light')}}
{{__('Favicon')}}
@endcan
{{Form::text('title_text',!empty(company_setting('title_text')) ? company_setting('title_text') : null,['class'=>'form-control','placeholder'=>__('Enter Title Text')]) }}
{{Form::text('footer_text',!empty(company_setting('footer_text')) ? company_setting('footer_text') : null,['class'=>'form-control','placeholder'=>__('Enter Footer Text')]) }}
@if(Auth::user()->hasRole('super admin'))
{{Form::label('landing_page',__('Enable Landing Page'),array('class'=>' col-form-label')) }}
@endif @can('setting theme manage')

{{__('Theme Customizer')}}

{{ __('Primary color settings') }}

{{ __('Sidebar settings') }}

{{ __('Layout settings') }}

{{ __('Enable RTL') }}

@endcan
{{ Form::close() }}
{{__('System Settings')}}
{{ Form::open(['route' => ['system.settings.save'],'id'=>'setting-system-form']) }} @method('post')
{{Form::label('currency_format',__('Decimal Format'),array('class'=>' col-form-label')) }}
{{Form::label('defult_currancy',__('Default Currancy'),array('class'=>' col-form-label')) }}
{{Form::label('defult_language',__('Default Language'),array('class'=>' col-form-label')) }}
{{Form::label('defult_timezone',__('Default Timezone'),array('class'=>' col-form-label')) }} {{ Form::select('defult_timezone',$timezones, company_setting('defult_timezone') , ['id' => 'timezone','class'=>"form-control choices",'searchEnabled'=>'true']) }}
{{ Form::close() }}
{{-- company setting --}} @if(Auth::user()->hasRole('company'))
{{ Form::open(['route' => 'company.setting.save']) }}
{{ __('Company Settings') }}
{{ Form::label('company_name', __('Company Name'), ['class' => 'form-label']) }} {{ Form::text('company_name', !empty(company_setting('company_name')) ? company_setting('company_name') : null, ['class' => 'form-control ', 'placeholder' => 'Enter Company Name']) }}
{{ Form::label('company_address', __('Address'), ['class' => 'form-label']) }} {{ Form::text('company_address', !empty(company_setting('company_address')) ? company_setting('company_address') : null, ['class' => 'form-control ', 'placeholder' => 'Enter Address']) }}
{{ Form::label('company_city', __('City'), ['class' => 'form-label']) }} {{ Form::text('company_city', !empty(company_setting('company_city')) ? company_setting('company_city') : null, ['class' => 'form-control ', 'placeholder' => 'Enter City']) }}
{{ Form::label('company_state', __('State'), ['class' => 'form-label']) }} {{ Form::text('company_state', !empty(company_setting('company_state')) ? company_setting('company_state') : null, ['class' => 'form-control ', 'placeholder' => 'Enter State']) }}
{{ Form::label('company_country', __('Country'), ['class' => 'form-label']) }} {{ Form::text('company_country', !empty(company_setting('company_country')) ? company_setting('company_country') : null, ['class' => 'form-control ', 'placeholder' => 'Enter Country']) }}
{{ Form::label('company_zipcode', __('Zip/Post Code'), ['class' => 'form-label']) }} {{ Form::text('company_zipcode', !empty(company_setting('company_zipcode')) ? company_setting('company_zipcode') : null, ['class' => 'form-control ', 'placeholder' => 'Enter Zip/Post Code']) }}
{{ Form::label('company_telephone', __('Telephone'), ['class' => 'form-label']) }} {{ Form::text('company_telephone', !empty(company_setting('company_telephone')) ? company_setting('company_telephone') : null, ['class' => 'form-control ', 'placeholder' => 'Enter Telephone']) }}
{{ Form::label('company_email_from_name', __('Email (From Name)'), ['class' => 'form-label']) }} {{ Form::text('company_email_from_name', !empty(company_setting('company_email_from_name')) ? company_setting('company_email_from_name') : null, ['class' => 'form-control ', 'placeholder' => 'Enter Email From Name']) }}
{{ Form::label('registration_number', __('Company Registration Number'), ['class' => 'form-label']) }} {{ Form::text('registration_number', !empty(company_setting('registration_number')) ? company_setting('registration_number') : null, ['class' => 'form-control ', 'placeholder' => 'Enter Company Registration Number']) }}
{{ Form::label('company_email', __('System Email'), ['class' => 'form-label']) }} {{ Form::text('company_email', !empty(company_setting('company_email')) ? company_setting('company_email') : null, ['class' => 'form-control ', 'placeholder' => 'Enter System Email']) }}
{{ Form::text('vat_number', !empty(company_setting('vat_number')) ? company_setting('vat_number') : null, ['class' => 'form-control', 'placeholder' => __('Enter VAT / GST Number')]) }}
{{ Form::close() }}
@php $active_module = ActivatedModule(); $dependency = explode(',','Account,Taskly'); @endphp @if(!empty(array_intersect($dependency,$active_module)))
{{ __('Proposal Print Settings') }}
{{ __('Edit your Company Proposal details') }}
@csrf
{{Form::label('proposal_prefix',__('Prefix'),array('class'=>'form-label')) }} {{Form::text('proposal_prefix',!empty(company_setting('proposal_prefix')) ? company_setting('proposal_prefix') :'#PROP0',array('class'=>'form-control', 'placeholder' => 'Enter Prefix'))}}
{{Form::label('proposal_starting_number',__('Starting Number'),array('class'=>'form-label')) }} {{Form::number('proposal_starting_number',!empty(company_setting('proposal_starting_number')) ? company_setting('proposal_starting_number') : 1,array('class'=>'form-control', 'placeholder' => 'Enter Starting Number'))}}
{{Form::label('proposal_footer_title',__('Footer Title'),array('class'=>'form-label')) }} {{Form::text('proposal_footer_title',!empty(company_setting('proposal_footer_title')) ? company_setting('proposal_footer_title') :'',array('class'=>'form-control', 'placeholder' => 'Enter Footer Title'))}}
{{Form::label('proposal_footer_notes',__('Footer Notes'),array('class'=>'form-label')) }} {{Form::textarea('proposal_footer_notes',!empty(company_setting('proposal_footer_notes')) ? company_setting('proposal_footer_notes') : '',array('class'=>'form-control','rows'=>'1' ,'placeholder' => 'Enter Footer Notes'))}}
{{Form::label('proposal_shipping_display',__('Shipping Display?'),array('class'=>'form-label')) }}
@foreach(templateData()['colors'] as $key => $color)
@endforeach
@if(!empty(company_setting('proposal_template')) && !empty( company_setting('proposal_color') )) @else @endif
@stack('retainer_setting_sidebar_div')
{{ __('Invoice Print Settings') }}
{{ __('Edit your Company invoice details') }}
@csrf
{{Form::label('invoice_prefix',__('Prefix'),array('class'=>'form-label')) }} {{Form::text('invoice_prefix',!empty(company_setting('invoice_prefix')) ? company_setting('invoice_prefix') :'#INV',array('class'=>'form-control', 'placeholder' => 'Enter Prefix'))}}
{{Form::label('invoice_starting_number',__('Starting Number'),array('class'=>'form-label')) }} {{Form::number('invoice_starting_number',!empty(company_setting('invoice_starting_number')) ? company_setting('invoice_starting_number') : 1,array('class'=>'form-control', 'placeholder' => 'Enter Invoice Starting Number'))}}
{{Form::label('invoice_footer_title',__('Footer Title'),array('class'=>'form-label')) }} {{Form::text('invoice_footer_title',!empty(company_setting('invoice_footer_title')) ? company_setting('invoice_footer_title') :'',array('class'=>'form-control', 'placeholder' => 'Enter Footer Title'))}}
{{Form::label('invoice_footer_notes',__('Footer Notes'),array('class'=>'form-label')) }} {{Form::textarea('invoice_footer_notes',!empty(company_setting('invoice_footer_notes')) ? company_setting('invoice_footer_notes') : '',array('class'=>'form-control','rows'=>'1' ,'placeholder' => 'Enter Footer Notes'))}}
{{Form::label('invoice_shipping_display',__('Shipping Display?'),array('class'=>'form-label')) }}
@foreach(templateData()['colors'] as $key => $color)
@endforeach
@if(!empty(company_setting('invoice_template')) && !empty( company_setting('invoice_color') )) @else @endif
@endif @endif @stack('general_setting_sidebar_div') @stack('account_setting_sidebar_div') @stack('doubleentry_setting_sidebar_div') @stack('hrm_setting_sidebar_div') @stack('crm_setting_sidebar_div') @stack('pos_setting_sidebar_div') @stack('rotas_setting_sidebar_div') @stack('support_setting_sidebar_div') @stack('sales_setting_sidebar_div') @stack('holidayz_setting_sidebar_div') @stack('timetracker_setting_sidebar_div')
@if(Auth::user()->hasRole('super admin')) {{-- Cookie settings --}}
{{ __('Pusher Settings') }}
{{ Form::open(['route' => ['pusher.setting'],'method'=>'post','id'=>'pusher-form']) }} @csrf
{{Form::label('pusher_app_id',__('Pusher App Id'),array('class'=>'form-label')) }} {{Form::text('pusher_app_id',!empty(admin_setting('PUSHER_APP_ID')) ? admin_setting('PUSHER_APP_ID') :null,array('class'=>'form-control font-style','required'=>'required','placeholder'=>'Enter Pusher App Id'))}} @error('pusher_app_id') {{ $message }} @enderror
{{Form::label('pusher_app_key',__('Pusher App Key'),array('class'=>'form-label')) }} {{Form::text('pusher_app_key',!empty(admin_setting('PUSHER_APP_KEY')) ? admin_setting('PUSHER_APP_KEY') :null,array('class'=>'form-control font-style','required'=>'required','placeholder'=>'Enter Pusher App Key'))}} @error('pusher_app_key') {{ $message }} @enderror
{{Form::label('pusher_app_secret',__('Pusher App Secret'),array('class'=>'form-label')) }} {{Form::text('pusher_app_secret',!empty(admin_setting('PUSHER_APP_SECRET')) ? admin_setting('PUSHER_APP_SECRET') :null,array('class'=>'form-control font-style','required'=>'required','placeholder'=>'Enter Pusher App Secret'))}} @error('pusher_app_secret') {{ $message }} @enderror
{{Form::label('pusher_app_cluster',__('Pusher App Cluster'),array('class'=>'form-label')) }} {{Form::text('pusher_app_cluster',!empty(admin_setting('PUSHER_APP_CLUSTER')) ? admin_setting('PUSHER_APP_CLUSTER') :null,array('class'=>'form-control font-style','required'=>'required','placeholder'=>'Enter Pusher App Cluster'))}} @error('pusher_app_cluster') {{ $message }} @enderror
{{ Form::close() }}
{{-- SEO settings --}}
{{ __('SEO Settings') }}
{{ Form::open(['url' => route('seo.setting.save'), 'method' => 'post', 'enctype' => 'multipart/form-data']) }} @csrf
{{ Form::label('meta_title', __('Meta Title'), ['class' => 'col-form-label']) }} {{ Form::text('meta_title', !empty(admin_setting('meta_title')) ? admin_setting('meta_title') :null, ['class' => 'form-control ','required'=>'required','placeholder' => 'Meta Title']) }}
{{ Form::label('meta_keywords', __('Meta Keywords'), ['class' => 'col-form-label']) }} {{ Form::textarea('meta_keywords', !empty(admin_setting('meta_keywords')) ? admin_setting('meta_keywords') :null , ['class' => 'form-control ','required'=>'required','placeholder' => 'Meta Keywords','rows'=>2]) }}
{{ Form::label('meta_description', __('Meta Description'), ['class' => 'col-form-label']) }} {{ Form::textarea('meta_description', !empty(admin_setting('meta_description')) ? admin_setting('meta_description') :null , ['class' => 'form-control ','required'=>'required','placeholder' => 'Meta Description','rows'=>3]) }}
{{ Form::label('Meta Image', __('Meta Image'), ['class' => 'col-form-label']) }}
@error('meta_image')
@enderror
{{ Form::close() }}
{{-- Cache settings --}}
{{ 'Cache Settings' }}
{{ __("This is a page meant for more advanced users, simply ignore it if you don't understand what cache is.") }}
{{ Form::label('Current cache size', __('Current cache size'), ['class' => 'col-form-label']) }}
{{ __('MB') }}
{{ Form::close() }}
@endif @can('setting storage manage')
{{ Form::open(array('route' => 'storage.setting.store', 'enctype' => "multipart/form-data")) }}
{{ __('Storage Settings') }}

{{ __('Local Settings') }}

{{Form::label('local_storage_validation',__('Only Upload Files'),array('class'=>' col-form-label')) }} {{ Form::select('local_storage_validation[]',array_flip($file_type), company_setting('local_storage_validation') , ['id' => 'local_storage_validation','class'=>" choices",'multiple'=>"",'searchEnabled'=>'true']) }}

{{ __('AWS S3 Settings') }}

{{Form::label('s3_storage_validation',__('Only Upload Files'),array('class'=>' col-form-label')) }} {{ Form::select('s3_storage_validation[]',array_flip($file_type), company_setting('s3_storage_validation') , ['id' => 's3_storage_validation','class'=>" choices",'multiple'=>""]) }}

{{ __('Wasabi Settings') }}

{{ __('If a folder has been created under the bucket then enter the folder name otherwise blank')}}
{{Form::label('wasabi_storage_validation',__('Only Upload Files'),array('class'=>' col-form-label')) }} {{ Form::select('wasabi_storage_validation[]',array_flip($file_type), company_setting('wasabi_storage_validation') , ['id' => 'wasabi_storage_validation','class'=>" choices",'multiple'=>""]) }}
{{Form::close()}}
@endcan @if (module_is_active('AIAssistant') || module_is_active('AIDocument') || module_is_active('AIImage')) @can('api key setting manage')
{{ Form::open(['route' => 'ai.key.setting.save']) }}
{{ __('Chat GPT Key Settings') }}
{{ __('Edit your key details') }}
@if(count($ai_key_settings)>0) @foreach($ai_key_settings as $key_data)
@if($i==1) @else @endif
@endforeach @else
@endif
{{ Form::close() }}
@endcan @endif @stack('company_setting_aftrer_site_setting_sidebar_div') {{-- Paymet section --}}
{{ Form::open(['route' => ['bank_transfer.setting'], 'id' => 'payment-form']) }}
{{ __('Bank Transfer') }}
@if(\Auth::user()->type == "super admin") {{ __('These details will be used to collect subscription plan payments.Each subscription plan will have a payment button based on the below configuration.') }} @else {{ __('These details will be used to collect invoice payments. Each invoice will have a payment button based on the below configuration.') }} @endif
{{ __('Example : Bank : bank name
Account Number : 0000 0000
') }}
{{ Form::close() }}
@stack('payment_setting_sidebar_div')
@endsection @push('scripts') {{-- VAT & GST Number --}} {{-- Dark Mod --}} {{-- cookie setting --}} @if (admin_setting('enable_cookie') != 'on') @endif @if (module_is_active('AIAssistant') || module_is_active('AIDocument') || module_is_active('AIImage')) @can('api key setting manage') @endcan @endif @endpush