@extends('layouts.admin') @php $logo = \App\Models\Utility::get_file('logo/'); if (Auth::user()->type == 'admin') { $setting = App\Models\Utility::getAdminPaymentSettings(); if ($setting['color']) { $color = $setting['color']; } else { $color = 'theme-3'; } $dark_mode = $setting['cust_darklayout']; $cust_theme_bg = $setting['cust_theme_bg']; $SITE_RTL = env('SITE_RTL'); } else { $setting = App\Models\Utility::getcompanySettings($currentWorkspace->id); $color = $setting->theme_color; $dark_mode = $setting->cust_darklayout; $SITE_RTL = $setting->site_rtl; $cust_theme_bg = $setting->cust_theme_bg; } if ($color == '' || $color == null) { $settings = App\Models\Utility::getAdminPaymentSettings(); $color = $settings['color']; } if ($dark_mode == '' || $dark_mode == null) { $dark_mode = $settings['cust_darklayout']; } if ($cust_theme_bg == '' || $dark_mode == null) { $cust_theme_bg = $settings['cust_theme_bg']; } if ($SITE_RTL == '' || $SITE_RTL == null) { $SITE_RTL = env('SITE_RTL'); } @endphp @section('page-title', __('Settings')) @section('links') @if (\Auth::guard('client')->check()) @else @endif @endsection @section('content')
{{ Form::open(['route' => ['workspace.settings.store', $currentWorkspace->slug], 'method' => 'post', 'enctype' => 'multipart/form-data']) }}
{{ __('Workspace Settings') }}
{{ __('Dark Logo') }}
{{ __('Light Logo') }}

{{ __('Favicon') }}

{{ Form::label('name', __('Name'), ['class' => 'form-label']) }} {{ Form::text('name', $currentWorkspace->name, ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Enter Name')]) }} @error('name') {{ $message }} @enderror

Theme Customizer

Primary color settings


Sidebar settings

Layout settings

{{ Form::close() }}
{{ __('Task Stage Settings') }}
{{ __('System will consider the last stage as a completed/done project or task status.') }}
@csrf
{{ __('Color') }} {{ __('Name') }} {{ __('Delete') }}
{{ __('Bug Stage Settings') }}
{{ __('System will consider the last stage as a completed/done project or bug status.') }}
@csrf
{{ __('Color') }} {{ __('Name') }} {{ __('Delete') }}
{{ __('Tax Settings') }}
@foreach ($taxes as $tax) @endforeach
{{ __('Name') }} {{ __('Rate') }} {{ __('Action') }}
{{ $tax->name }} {{ $tax->rate }}%
{{ __('Company Settings') }}
@csrf
{{ __('Payment Settings') }}
{{ __('These details will be used to collect invoice payments. Each invoice will have a payment button based on the below configuration.') }}
@csrf
{{ __('Note: Add currency code as per three-letter ISO code.') }} {{ __('You can find out how to do that here.') }}.
{{--
{{ __('Bank Transfer') }}
{{__('Enable:')}}
{{ Form::label('bank_details', __('Bank Details'), ['class' => 'form-label']) }} {{ Form::textarea('bank_details',isset($payment_detail['bank_details']) ? $payment_detail['bank_details'] : '',['class' => 'form-control', 'rows'=>'6' , 'placeholder' => __('Bank Transfer Details')]) }} {{__('Example:bank:bank name
Account Number:0000 0000
')}}
--}}

{{ Form::label('bank_details', __('Bank Details'), ['class' => 'form-label']) }} {{ Form::textarea('bank_details',isset($payment_detail['bank_details']) ? $payment_detail['bank_details'] : '',['class' => 'form-control', 'rows'=>'6' , 'placeholder' => __('Bank Transfer Details')]) }} {{__('Example:bank:bank name
Account Number:0000 0000
')}}

{{ Form::label('stripe_key', __('Stripe Key'), ['class' => 'form-label']) }} {{ Form::text('stripe_key', isset($currentWorkspace->stripe_key) && !empty($currentWorkspace->stripe_key) ? $currentWorkspace->stripe_key : '', ['class' => 'form-control', 'placeholder' => __('Stripe Key')]) }}
{{ Form::label('stripe_secret', __('Stripe Secret'), ['class' => 'form-label']) }} {{ Form::text('stripe_secret', isset($currentWorkspace->stripe_secret) && !empty($currentWorkspace->stripe_secret) ? $currentWorkspace->stripe_secret : '', ['class' => 'form-control', 'placeholder' => __('Stripe Secret')]) }}

paypal_mode) || empty($currentWorkspace->paypal_mode) || $currentWorkspace->paypal_mode == 'sandbox' ? 'checked' : '' }} id="">
paypal_mode) && $currentWorkspace->paypal_mode == 'live' ? 'checked' : '' }}>
{{ Form::label('paypal_client_id', __('Client ID'), ['class' => 'form-label']) }} {{ Form::text('paypal_client_id', isset($currentWorkspace->paypal_client_id) ? $currentWorkspace->paypal_client_id : '', ['class' => 'form-control', 'placeholder' => __('Client ID')]) }}
{{ Form::label('paypal_secret_key', __('Secret Key'), ['class' => 'form-label']) }} {{ Form::text('paypal_secret_key', isset($currentWorkspace->paypal_secret_key) ? $currentWorkspace->paypal_secret_key : '', ['class' => 'form-control', 'placeholder' => __('Secret Key')]) }}

@if ($errors->has('mercado_secret_key')) {{ $errors->first('mercado_access_token') }} @endif

@if ($errors->has('paymentwall_public_key')) {{ $errors->first('paymentwall_public_key') }} @endif
@if ($errors->has('paymentwall_private_key')) {{ $errors->first('paymentwall_private_key') }} @endif

@if ($errors->has('toyyibpay_secret_key')) {{ $errors->first('toyyibpay_secret_key') }} @endif
@if ($errors->has('toyyibpay_category_code')) {{ $errors->first('toyyibpay_category_code') }} @endif

@if ($errors->has('payfast_merchant_key')) {{ $errors->first('payfast_merchant_key') }} @endif
@if ($errors->has('payfast_merchant_id')) {{ $errors->first('payfast_merchant_id') }} @endif
@if ($errors->has('payfast_signature')) {{ $errors->first('payfast_signature') }} @endif

{{ Form::label('iyzipay_api_key', __('Api Key'), ['class' => 'form-label']) }} {{ Form::text('iyzipay_api_key', isset($payment_detail['iyzipay_api_key']) ? $payment_detail['iyzipay_api_key'] : '', ['class' => 'form-control', 'placeholder' => __('Api Key')]) }}
{{ Form::label('iyzipay_secret_key', __('Secret Key'), ['class' => 'form-label']) }} {{ Form::text('iyzipay_secret_key', isset($payment_detail['iyzipay_secret_key']) ? $payment_detail['iyzipay_secret_key'] : '', ['class' => 'form-control', 'placeholder' => __('Secret Key')]) }}

@if ($errors->has('sspay_secret_key')) {{ $errors->first('sspay_secret_key') }} @endif
@if ($errors->has('sspay_category_code')) {{ $errors->first('sspay_category_code') }} @endif

@if ($errors->has('paytabs_profile_id')) {{ $errors->first('paytabs_profile_id') }} @endif
@if ($errors->has('paytab_server_key')) {{ $errors->first('paytab_server_key') }} @endif
@if ($errors->has('paytabs_region')) {{ $errors->first('paytabs_region') }} @endif

@if ($errors->has('benefit_secret_key')) {{ $errors->first('benefit_secret_key') }} @endif
@if ($errors->has('benefit_publishable_key')) {{ $errors->first('benefit_publishable_key') }} @endif

@if ($errors->has('cashfree_api_key')) {{ $errors->first('cashfree_api_key') }} @endif
@if ($errors->has('cashfree_secret_key')) {{ $errors->first('cashfree_secret_key') }} @endif

{{ Form::label('aamarpay_store_id', __('Store Id'), ['class' => 'form-label']) }} {{ Form::text('aamarpay_store_id', isset($payment_detail['aamarpay_store_id']) ? $payment_detail['aamarpay_store_id'] : '', ['class' => 'form-control', 'placeholder' => __('Store Id')]) }}
@if ($errors->has('aamarpay_store_id')) {{ $errors->first('aamarpay_store_id') }} @endif
{{ Form::label('aamarpay_signature_key', __('Signature Key'), ['class' => 'form-label']) }} {{ Form::text('aamarpay_signature_key', isset($payment_detail['aamarpay_signature_key']) ? $payment_detail['aamarpay_signature_key'] : '', ['class' => 'form-control', 'placeholder' => __('Signature Key')]) }}
@if ($errors->has('aamarpay_signature_key')) {{ $errors->first('aamarpay_signature_key') }} @endif
{{ Form::label('aamarpay_description', __('Description'), ['class' => 'form-label']) }} {{ Form::text('aamarpay_description', isset($payment_detail['aamarpay_description']) ? $payment_detail['aamarpay_description'] : '', ['class' => 'form-control', 'placeholder' => __('Description')]) }}
@if ($errors->has('aamarpay_description')) {{ $errors->first('aamarpay_description') }} @endif
{{ __('Invoice Footer Settings') }}
{{ __('The following will be displayed in the invoice footer.') }}
@if ($currentWorkspace->is_chagpt_enable()) {{-- --}} @endif
@csrf
{{ __('Invoice Settings') }}
@csrf
@foreach ($colors as $key => $color)
@endforeach
{{ __('Email Notification Settings') }}
@csrf @foreach ($EmailTemplates as $EmailTemplate)
{{ $EmailTemplate->name }}
template ? $EmailTemplate->template->is_active == 1 : '') checked="checked" @endif type="checkbox" value={{ isset($EmailTemplate->template) ? $EmailTemplate->template->id : '' }}>
@endforeach
{{ __('Time Tracker Settings') }}
@csrf

{{ __('Application URL to log into the app.') }} {{ Form::text('currency', URL::to('/'), ['class' => 'form-control mt-2', 'placeholder' => __('Enter Currency'), 'disabled' => 'true']) }}
{{ Form::label('interval_time', __('Tracking Interval'), ['class' => 'form-label']) }}
{{ __('Image Screenshot Take Interval time ( 1 = 1 min)') }} {{ Form::number('interval_time', $currentWorkspace->interval_time, ['class' => 'form-control mt-2', 'placeholder' => __('Enter Tracking Interval'), 'required' => 'required']) }}
{{ __('Zoom Meeting Settings') }}
@csrf
@if (Auth::user()->type == 'user')
{{ Form::open(['route' => ['workspace.settings.Slack', $currentWorkspace->slug], 'method' => 'post', 'class' => 'd-contents']) }}
{{ __('Slack Settings') }}
{{ Form::label('Slack Webhook URL', __('Slack Webhook URL'), ['class' => 'form-label']) }} {{ Form::text('slack_webhook', isset($payment_detail['slack_webhook']) ? $payment_detail['slack_webhook'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Slack Webhook URL'), 'required' => 'required']) }}
{{ Form::label('Module Settings', __('Module Settings'), ['class' => 'form-label']) }}
{{ Form::label('New Project', __('New Project'), ['class' => 'form-label']) }}
{{ Form::checkbox('project_notificaation', '1', isset($payment_detail['project_notificaation']) && $payment_detail['project_notificaation'] == '1' ? 'checked' : '', ['class' => 'form-check-input', 'id' => 'project_notificaation']) }}
{{ Form::label('New Task', __('New Task'), ['class' => 'form-label']) }}
{{ Form::checkbox('task_notificaation', '1', isset($payment_detail['task_notificaation']) && $payment_detail['task_notificaation'] == '1' ? 'checked' : '', ['class' => 'form-check-input', 'id' => 'task_notificaation']) }}
{{ Form::label('Task Stage Updated', __('Task Stage Updated'), ['class' => 'form-label']) }}
{{ Form::checkbox('taskmove_notificaation', '1', isset($payment_detail['taskmove_notificaation']) && $payment_detail['taskmove_notificaation'] == '1' ? 'checked' : '', ['class' => 'form-check-input', 'id' => 'taskmove_notificaation']) }}
{{ Form::label('New Milestone', __('New Milestone'), ['class' => 'form-label']) }}
{{ Form::checkbox('milestone_notificaation', '1', isset($payment_detail['milestone_notificaation']) && $payment_detail['milestone_notificaation'] == '1' ? 'checked' : '', ['class' => 'form-check-input', 'id' => 'milestone_notificaation']) }}
{{ Form::label('Milestone Status Updated', __('Milestone Status Updated'), ['class' => 'form-label']) }}
{{ Form::checkbox('milestonest_notificaation', '1', isset($payment_detail['milestonest_notificaation']) && $payment_detail['milestonest_notificaation'] == '1' ? 'checked' : '', ['class' => 'form-check-input', 'id' => 'milestonest_notificaation']) }}
{{ Form::label('New Task Comment', __('New Task Comment'), ['class' => 'form-label']) }}
{{ Form::checkbox('taskcom_notificaation', '1', isset($payment_detail['taskcom_notificaation']) && $payment_detail['taskcom_notificaation'] == '1' ? 'checked' : '', ['class' => 'form-check-input', 'id' => 'taskcom_notificaation']) }}
{{ Form::label('New Invoice', __('New Invoice'), ['class' => 'form-label']) }}
{{ Form::checkbox('invoice_notificaation', '1', isset($payment_detail['invoice_notificaation']) && $payment_detail['invoice_notificaation'] == '1' ? 'checked' : '', ['class' => 'form-check-input', 'id' => 'invoice_notificaation']) }}
{{ Form::label('Invoice Status Updated', __('Invoice Status Updated'), ['class' => 'form-label']) }}
{{ Form::checkbox('invoicest_notificaation', '1', isset($payment_detail['invoicest_notificaation']) && $payment_detail['invoicest_notificaation'] == '1' ? 'checked' : '', ['class' => 'form-check-input', 'id' => 'invoicest_notificaation']) }}
{{ Form::submit(__('Save Changes'), ['class' => 'btn btn-primary']) }}
{{ Form::close() }}
@endif @if (Auth::user()->type == 'user')
{{ Form::open(['route' => ['workspace.settings.telegram', $currentWorkspace->slug], 'method' => 'post', 'class' => 'd-contents']) }}
{{ __('Telegram Settings') }}
{{ Form::label('Telegram Access Token', __('Telegram Access Token'), ['class' => 'form-label']) }} {{ Form::text('telegram_token', isset($payment_detail['telegram_token']) ? $payment_detail['telegram_token'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Telegram Access Token'), 'required' => 'required']) }}
{{ Form::label('Telegram ChatID', __('Telegram ChatID'), ['class' => 'form-label']) }} {{ Form::text('telegram_chatid', isset($payment_detail['telegram_chatid']) ? $payment_detail['telegram_chatid'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Telegram ChatID'), 'required' => 'required']) }}
{{ Form::label('Module Settings', __('Module Settings'), ['class' => 'form-control-label']) }}
{{ Form::label('New Project', __('New Project'), ['class' => 'form-label']) }}
{{ Form::checkbox('telegram_project_notificaation', '1', isset($payment_detail['telegram_project_notificaation']) && $payment_detail['telegram_project_notificaation'] == '1' ? 'checked' : '', ['class' => 'form-check-input', 'id' => 'telegram_project_notificaation']) }}
{{ Form::label('New Task', __('New Task'), ['class' => 'form-label']) }}
{{ Form::checkbox('telegram_task_notificaation', '1', isset($payment_detail['telegram_task_notificaation']) && $payment_detail['telegram_task_notificaation'] == '1' ? 'checked' : '', ['class' => 'form-check-input', 'id' => 'telegram_task_notificaation']) }}
{{ Form::label('Task Stage Updated', __('Task Stage Updated'), ['class' => 'form-label']) }}
{{ Form::checkbox('telegram_taskmove_notificaation', '1', isset($payment_detail['telegram_taskmove_notificaation']) && $payment_detail['telegram_taskmove_notificaation'] == '1' ? 'checked' : '', ['class' => 'form-check-input', 'id' => 'telegram_taskmove_notificaation']) }}
{{ Form::label('New Milestone', __('New Milestone'), ['class' => 'form-label']) }}
{{ Form::checkbox('telegram_milestone_notificaation', '1', isset($payment_detail['telegram_milestone_notificaation']) && $payment_detail['telegram_milestone_notificaation'] == '1' ? 'checked' : '', ['class' => 'form-check-input', 'id' => 'telegram_milestone_notificaation']) }}
{{ Form::label('Milestone Status Updated', __('Milestone Status Updated'), ['class' => 'form-label']) }}
{{ Form::checkbox('telegram_milestonest_notificaation', '1', isset($payment_detail['telegram_milestonest_notificaation']) && $payment_detail['telegram_milestonest_notificaation'] == '1' ? 'checked' : '', ['class' => 'form-check-input', 'id' => 'telegram_milestonest_notificaation']) }}
{{ Form::label('New Task Comment', __('New Task Comment'), ['class' => 'form-label']) }}
{{ Form::checkbox('telegram_taskcom_notificaation', '1', isset($payment_detail['telegram_taskcom_notificaation']) && $payment_detail['telegram_taskcom_notificaation'] == '1' ? 'checked' : '', ['class' => 'form-check-input', 'id' => 'telegram_taskcom_notificaation']) }}
{{ Form::label('New Invoice', __('New Invoice'), ['class' => 'form-label']) }}
{{ Form::checkbox('telegram_invoice_notificaation', '1', isset($payment_detail['telegram_invoice_notificaation']) && $payment_detail['telegram_invoice_notificaation'] == '1' ? 'checked' : '', ['class' => 'form-check-input', 'id' => 'telegram_invoice_notificaation']) }}
{{ Form::label('Invoice Status Updated', __('Invoice Status Updated'), ['class' => 'form-label']) }}
{{ Form::checkbox('telegram_invoicest_notificaation', '1', isset($payment_detail['telegram_invoicest_notificaation']) && $payment_detail['telegram_invoicest_notificaation'] == '1' ? 'checked' : '', ['class' => 'form-check-input', 'id' => 'telegram_invoicest_notificaation']) }}
{{ Form::submit(__('Save Changes'), ['class' => 'btn btn-primary']) }}
{{ Form::close() }}
@endif @if(Auth::user()->type == 'user')
{{ Form::open(['route' => ['google.calender.settings', $currentWorkspace->slug], 'method' => 'post', 'enctype' => 'multipart/form-data']) }}
{{ __('Google Calendar') }}
is_googlecalendar_enabled) && $currentWorkspace->is_googlecalendar_enabled == 'on' ? 'checked' : '' }}>
{{Form::label('Google calendar id',__('Google Calendar Id'),['class'=>'col-form-label']) }} {{Form::text('google_calender_id',!empty($currentWorkspace['google_calender_id']) ? $currentWorkspace['google_calender_id'] : '' ,array('class'=>'form-control ' ,'placeholder'=>"Google Calendar Id"))}}
{{Form::label('Google calendar json file',__('Google Calendar json File'),['class'=>'col-form-label']) }}
{{Form::close()}}
@endif
{{ __('Webhook Settings') }}
{{ __('Edit your Webhook Settings') }}
{{-- --}} @php $webhook = App\Models\Webhook::where('created_by','=', $currentWorkspace->id)->get(); @endphp {{-- @if (!empty($webhook) && count($webhook) > 0) --}} @foreach ($webhook as $data) @endforeach {{-- @else @endif --}}
{{ __('Id') }}{{ __('Module') }} {{ __('Url') }} {{ __('Method') }} {{ __('Action') }}
{{$data->module}} {{$data->url}} {{$data->method}}

{{ __('Opps...') }}

{!! __('No data request found...!') !!}
@endsection @push('scripts') @endpush