@extends('layouts.admin') @section('title') {{ __('Site Settings') }} @endsection @php $logo = \App\Models\Utility::get_file('logo/'); $path_imgs = \App\Models\Utility::get_file('/'); $setting = \App\Models\Utility::settings(); @endphp @push('css') @endpush @php if ($settings['color']) { $color = $settings['color']; } @endphp @section('content')
@if (Auth::user()->type != 'client')
{{ __('Theme Settings') }}

{{ __('Edit your Theme.') }}

@endif @if (Auth::user()->type != 'client')
{{ __('Invoice Settings') }}

{{ __('Edit your Invoice details.') }}

@endif @if (Auth::user()->type != 'client')
{{ __('Payment Settings') }}

{{ __('Edit your Payment details.') }}

@endif
{{ __('My Billing Detail') }}

{{ __('This detail will show in your Invoice.') }}

@if (Auth::user()->type != 'client')
{{ __('Tax') }}

{{ __('You can manage your tax rate here.') }}

@endif @if (Auth::user()->type == 'owner')
{{ __('Contract type') }}

{{ __('You can manage your Contract type here.') }}

@endif @if (Auth::user()->type != 'client')
{{ __('Tracker Settings') }}

{{ __('You can manage your tracker interval time here.') }}

@endif @if (\Auth::user()->type == 'owner')
{{ __('Zoom Meeting') }}

{{ __('You can manage your Meeting setting Information.') }}

@endif @if (\Auth::user()->type == 'owner')
{{ __('Slack Notification') }}

{{ __('You can manage your slack setting information.') }}

@endif @if (\Auth::user()->type == 'owner')
{{ __('Telegram Notification') }}

{{ __('You can manage your telegram setting information.') }}

@endif @if (\Auth::user()->type == 'owner')
{{ __('Google Calendar') }}

{{ __('You can manage your Calendar setting information.') }}

@endif @if (\Auth::user()->type == 'owner')
{{ __('Webhook Setting') }}

{{ __('You can manage your Webhook setting information.') }}

@endif @if (\Auth::user()->type == 'owner')
{{ __('Email Settings') }}

{{ __('Edit your email details.') }}

@endif
@if (Auth::user()->type != 'client')
{{ __('Theme Settings') }}
{{ Form::open(['route' => ['settings.store'], 'id' => 'update_setting', 'enctype' => 'multipart/form-data']) }} {{--
--}}
{{ __('Primary color settings') }}

{{ __('RTL settings') }}
creatorId())['enable_rtl'] == 'on' ? 'checked' : '' }}>
{{ Form::label('default_owner_language', __('Default Language'), ['class' => 'form-control-label text-dark']) }}

{{ Form::hidden('from', 'site_setting') }}
{{ Form::close() }}
@endif @if (Auth::user()->type != 'client')
{{ __('Invoice Settings') }}
{{ Form::open(['route' => ['settings.store'], 'id' => 'update_setting', 'enctype' => 'multipart/form-data']) }}
{{ Form::label('light_logo', __('Light Logo'), ['class' => 'form-control-label']) }} @error('light_logo') @enderror
@if (!empty($details['light_logo'])) @else @endif
{{ Form::label('dark_logo', __('Dark Logo'), ['class' => 'form-control-label']) }} @error('dark_logo') @enderror
@if (!empty($details['dark_logo'])) @else @endif
{{-- @if (Utility::plancheck()['enable_chatgpt'] == 'on') @endif --}}
{{ Form::label('invoice_footer_title', __('Invoice Footer Title'), ['class' => 'form-control-label']) }}
{{ Form::label('invoice_footer_note', __('Invoice Footer Note'), ['class' => 'form-control-label']) }} {{ __('This textarea will autosize while you type') }} {{ Form::textarea('invoice_footer_note', $details['invoice_footer_note'], ['class' => 'form-control', 'rows' => '3', 'data-toggle' => 'autosize']) }}
{{ Form::hidden('from', 'invoice_setting') }}
{{ Form::close() }}
@endif @if (Auth::user()->type != 'client')
@else
@endif
{{ __('My Billing Detail') }}
{{ __('This detail will show in your Invoice.') }}
{{ Form::open(['route' => ['settings.store'], 'id' => 'update_billing_setting', 'enctype' => 'multipart/form-data']) }}
{{ Form::label('address', __('Address'), ['class' => 'form-control-label']) }} {{ Form::text('address', $details['address'], ['class' => 'form-control', 'required' => 'required']) }}
{{ Form::label('city', __('City'), ['class' => 'form-control-label']) }} {{ Form::text('city', $details['city'], ['class' => 'form-control', 'required' => 'required']) }}
{{ Form::label('state', __('State'), ['class' => 'form-control-label']) }} {{ Form::text('state', $details['state'], ['class' => 'form-control', 'required' => 'required']) }}
{{ Form::label('zipcode', __('Zip/Post Code'), ['class' => 'form-control-label']) }} {{ Form::text('zipcode', $details['zipcode'], ['class' => 'form-control', 'required' => 'required']) }}
{{ Form::label('country', __('Country'), ['class' => 'form-control-label']) }} {{ Form::text('country', $details['country'], ['class' => 'form-control', 'required' => 'required']) }}
{{ Form::label('telephone', __('Telephone'), ['class' => 'form-control-label']) }} {{ Form::text('telephone', $details['telephone'], ['class' => 'form-control', 'required' => 'required']) }}
{{ Form::hidden('from', 'billing_setting') }}
{{ Form::close() }}
@if (Auth::user()->type != 'client')
{{ __('Tax') }}
@if (Auth::user()->taxes->count() > 0) @foreach (Auth::user()->taxes as $tax) @endforeach @else @endif
{{ __('Name') }} {{ __('Rate %') }} {{ __('Action') }}
{{ $tax->name }} {{ $tax->rate }} {!! Form::open(['method' => 'DELETE', 'route' => ['taxes.destroy', $tax->id], 'id' => 'delete-tax-' . $tax->id]) !!} {!! Form::close() !!}
{{ __('No Taxes Found.') }}
@endif @if (Auth::user()->type == 'owner')
{{ __('Contract type') }}
@if (Auth::user()->contracttype->count() > 0) @foreach (Auth::user()->contracttype as $contract) @endforeach @else @endif
{{ __('Name') }} {{ __('Action') }}
{{ $contract->name }} {!! Form::open([ 'method' => 'DELETE', 'route' => ['contract.destroy', $contract->id], 'id' => 'delete-contract-' . $contract->id, ]) !!} {!! Form::close() !!}
{{ __('No Contract Found.') }}
@endif @if (Auth::user()->type != 'client')
{{ __('Payment Settings') }}
{{ __('These details will be used to collect invoice payments. Each invoice will have a payment button based on the below configuration.') }}
{{ Form::open(['route' => ['settings.store'], 'id' => 'update_setting', 'enctype' => 'multipart/form-data']) }}
{!! Form::label('inputname', 'Bank Details', ['class' => 'col-form-label']) !!} @php $bank_details = !empty($payment_detail['bank_details']) ? $payment_detail['bank_details'] : ''; @endphp {!! Form::textarea('bank_details', $bank_details, [ 'class' => 'form-control', 'rows' => '6', ]) !!} {{ __('Example : Bank : Bank Name
Account Number : 0000 0000
') }}.
{{ __('Stripe') }}
{{ __('Note: This detail will use for make checkout of plan.') }}
{{ Form::label('stripe_key', __('Stripe Key'), ['class' => 'form-control-label']) }} {{ Form::text('stripe_key', isset($payment_detail['stripe_key']) && !empty($payment_detail['stripe_key']) ? $payment_detail['stripe_key'] : '', ['class' => 'form-control', 'placeholder' => __('Stripe Key')]) }}
{{ Form::label('stripe_secret', __('Stripe Secret'), ['class' => 'form-control-label']) }} {{ Form::text('stripe_secret', isset($payment_detail['stripe_secret']) && !empty($payment_detail['stripe_secret']) ? $payment_detail['stripe_secret'] : '', ['class' => 'form-control', 'placeholder' => __('Stripe Secret')]) }}
{{ __('Paypal') }}
{{ __('Note: This detail will use for make checkout of plan.') }}

{{ Form::label('paypal_client_id', __('Client ID'), ['class' => 'form-control-label']) }} {{ Form::text('paypal_client_id', isset($payment_detail['paypal_client_id']) ? $payment_detail['paypal_client_id'] : '', ['class' => 'form-control', 'placeholder' => __('Client ID')]) }}
{{ Form::label('paypal_secret_key', __('Secret Key'), ['class' => 'form-control-label']) }} {{ Form::text('paypal_secret_key', isset($payment_detail['paypal_secret_key']) ? $payment_detail['paypal_secret_key'] : '', ['class' => 'form-control', 'placeholder' => __('Secret Key')]) }}
{{ __('Paystack') }}
{{ __('Note: This detail will use for make checkout of plan.') }}
{{ __('Flutterwave') }}
{{ __('Note: This detail will use for make checkout of plan.') }}
{{ __('Razorpay') }}
{{ __('Note: This detail will use for make checkout of plan.') }}
{{ __('Mercado Pago') }}
{{ __('Note: This detail will use for make checkout of plan.') }}

@if ($errors->has('mercado_secret_key')) {{ $errors->first('mercado_access_token') }} @endif
{{ __('Paytm') }}
{{ __('Note: This detail will use for make checkout of plan.') }}

{{ __('Mollie') }}
{{ __('Note: This detail will use for make checkout of plan.') }}
{{ __('Skrill') }}
{{ __('Note: This detail will use for make checkout of plan.') }}
{{ __('CoinGate') }}
{{ __('Note: This detail will use for make checkout of plan.') }}

{{ __('PaymentWall') }}
{{ __('Note: This detail will use for make checkout of plan.') }}
@if ($errors->has('paymentwall_public_key')) {{ $errors->first('paymentwall_public_key') }} @endif
@if ($errors->has('flutterwave_secret_key')) {{ $errors->first('paymentwall_private_key') }} @endif
{{ __('Note: This detail will use for make checkout of plan.') }}
@if ($errors->has('toyyibpay_secret_key')) {{ $errors->first('toyyibpay_secret_key') }} @endif
@if ($errors->has('category_code')) {{ $errors->first('category_code') }} @endif
{{ __('Payfast') }}
{{ __('Note: This detail will use for make checkout of plan.') }}

{{ __('Note: This detail will use for make checkout of plan.') }}

{{ __('Note: This detail will use for make checkout of plan.') }}
@if ($errors->has('sspay_secret_key')) {{ $errors->first('sspay_secret_key') }} @endif
@if ($errors->has('sspay_category_code')) {{ $errors->first('sspay_category_code') }} @endif
{{ __('Note: This detail will use for make checkout of plan.') }}
@if ($errors->has('paytab_profile_id')) {{ $errors->first('paytab_profile_id') }} @endif
@if ($errors->has('paytab_server_key')) {{ $errors->first('paytab_server_key') }} @endif
@if ($errors->has('paytab_region')) {{ $errors->first('paytab_region') }} @endif
{{ __('Note: This detail will use for make checkout of plan.') }}
@if ($errors->has('benefit_api_key')) {{ $errors->first('benefit_api_key') }} @endif
@if ($errors->has('benefit_secret_key')) {{ $errors->first('benefit_secret_key') }} @endif
{{ __('Note: This detail will use for make checkout of plan.') }}
@if ($errors->has('cashfree_api_key')) {{ $errors->first('cashfree_api_key') }} @endif
@if ($errors->has('cashfree_secret_key')) {{ $errors->first('cashfree_secret_key') }} @endif
{{ __('Note: This detail will use for make checkout of plan.') }}
@if ($errors->has('aamarpay_store_id')) {{ $errors->first('aamarpay_store_id') }} @endif
@if ($errors->has('aamarpay_signature_key')) {{ $errors->first('aamarpay_signature_key') }} @endif
@if ($errors->has('aamarpay_description')) {{ $errors->first('aamarpay_description') }} @endif
{{ __('Note: This detail will use for make checkout of plan.') }}
@if ($errors->has('paytr_merchant_id')) {{ $errors->first('paytr_merchant_id') }} @endif
@if ($errors->has('paytr_merchant_key')) {{ $errors->first('paytr_merchant_key') }} @endif
@if ($errors->has('paytr_merchant_salt')) {{ $errors->first('paytr_merchant_salt') }} @endif
{{ __('Note: This detail will use for make checkout of plan.') }}
@if ($errors->has('yookassa_shop_id')) {{ $errors->first('yookassa_shop_id') }} @endif
@if ($errors->has('yookassa_secret_key')) {{ $errors->first('yookassa_secret_key') }} @endif
{{ __('Note: This detail will use for make checkout of plan.') }}
@if ($errors->has('xendit_api')) {{ $errors->first('xendit_api') }} @endif
@if ($errors->has('xendit_token')) {{ $errors->first('xendit_token') }} @endif
{{ __('Note: This detail will use for make checkout of plan.') }}

@if ($errors->has('midtrans_secret')) {{ $errors->first('midtrans_secret') }} @endif
{{ Form::hidden('from', 'payment') }}
{{ Form::close() }}
@endif @if (Auth::user()->type != 'client')
{{ __('Tracker Settings') }}
{{ __('You can manage your tracker interval time here.') }}
{{ Form::open(['route' => ['settings.store'], 'id' => 'update_billing_setting', 'enctype' => 'multipart/form-data']) }}
{{ Form::label('address', __('URL'), ['class' => 'form-control-label']) }} {{-- {{ Form::text('', $details['address'], ['class' => 'form-control','required' => 'required']) }} --}}
{{ Form::label('interval_time', __('Tracking Interval'), ['class' => 'form-control-label']) }} {{ __('Image Screenshort Take Interval time ( 1 = 1 min)') }} {{ Form::number('interval_time', $details['interval_time'], ['class' => 'form-control', 'required' => 'required']) }}
{{ Form::hidden('from', 'tracker') }}
{{ Form::close() }}
@endif @if (Auth::user()->type != 'client')
{{ __('Zoom Meeting') }}
{{ __('You can manage your Zoom Meeting Information.') }}
{{ Form::open(['url' => route('setting.ZoomSettings'), 'enctype' => 'multipart/form-data']) }}
{{ Form::label('zoom_account_id', __('Zoom Account ID'), ['class' => 'form-control-label']) }}
{{ Form::label('zoom_client_id', __('Zoom Client ID'), ['class' => 'form-control-label']) }}
{{ Form::label('zoom_client_secret', __('Zoom Client Secret'), ['class' => 'form-control-label']) }}
{{ Form::close() }}
@endif @if (Auth::user()->type != 'client')
{{ __('Slack Notification') }}
{{ __('You can manage your slack notification Information.') }}
{{ Form::open(['route' => 'slack.setting', 'method' => 'post', 'class' => 'd-contents']) }}
{{ __('Slack Webhook URL') }}
{{ Form::text('slack_webhook', isset($settings['slack_webhook']) ? $settings['slack_webhook'] : '', ['class' => 'form-control w-100', 'placeholder' => __('Enter Slack Webhook URL'), 'required' => 'required']) }}
{{ __('Module Setting') }}
  • {{ __('New Project') }}
    {{ Form::checkbox('is_project_enabled', '1', isset($settings['is_project_enabled']) && $settings['is_project_enabled'] == '1' ? 'checked' : '', ['class' => 'custom-control-input', 'id' => 'is_project_enabled']) }}
  • {{ __('New Task') }} {{--
    --}}
    {{ Form::checkbox('task_notification', '1', isset($settings['task_notification']) && $settings['task_notification'] == '1' ? 'checked' : '', ['class' => 'custom-control-input', 'id' => 'task_notification']) }}
    {{--
    --}}
  • {{ __('New Invoice') }}
    {{ Form::checkbox('invoice_notificaation', '1', isset($settings['invoice_notificaation']) && $settings['invoice_notificaation'] == '1' ? 'checked' : '', ['class' => 'custom-control-input', 'id' => 'invoice_notificaation']) }}
  • {{ __('Task Stage Updated') }}
    {{ Form::checkbox('task_move_notificaation', '1', isset($settings['task_move_notificaation']) && $settings['task_move_notificaation'] == '1' ? 'checked' : '', ['class' => 'custom-control-input', 'id' => 'task_move_notificaation']) }}
  • {{ __('New Milestone') }}
    {{ Form::checkbox('mileston_notificaation', '1', isset($settings['mileston_notificaation']) && $settings['mileston_notificaation'] == '1' ? 'checked' : '', ['class' => 'custom-control-input', 'id' => 'mileston_notificaation']) }}
  • {{ __('Milestone Status Updated') }}
    {{ Form::checkbox('milestone_status_notificaation', '1', isset($settings['milestone_status_notificaation']) && $settings['milestone_status_notificaation'] == '1' ? 'checked' : '', ['class' => 'custom-control-input', 'id' => 'milestone_status_notificaation']) }}
  • {{ __('Invoice Status Updated') }}
    {{ Form::checkbox('invoice_status_notificaation', '1', isset($settings['invoice_status_notificaation']) && $settings['invoice_status_notificaation'] == '1' ? 'checked' : '', ['class' => 'custom-control-input', 'id' => 'invoice_status_notificaation']) }}
{{ Form::close() }}
@endif @if (Auth::user()->type != 'client')
{{ __('Telegram Notification') }}
{{ __('You can manage your Telegram notification Information.') }}
{{ Form::open(['route' => 'telegram.setting', 'id' => 'telegram-setting', 'method' => 'post', 'class' => 'd-contents']) }}

{{ Form::text('telegram_accestoken', isset($settings['telegram_accestoken']) ? $settings['telegram_accestoken'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Telegram AccessToken')]) }}

{{ Form::text('telegram_chatid', isset($settings['telegram_chatid']) ? $settings['telegram_chatid'] : '', ['class' => 'form-control', 'placeholder' => __('Enter Telegram ChatID')]) }}
{{ __('Module Setting') }}
  • {{ __('New Project') }}
    {{ Form::checkbox('telegram_is_project_enabled', '1', isset($settings['telegram_is_project_enabled']) && $settings['telegram_is_project_enabled'] == '1' ? 'checked' : '', ['class' => 'custom-control-input', 'id' => 'telegram_is_project_enabled']) }}
  • {{ __('New Task') }}
    {{ Form::checkbox('telegram_task_notification', '1', isset($settings['telegram_task_notification']) && $settings['telegram_task_notification'] == '1' ? 'checked' : '', ['class' => 'custom-control-input', 'id' => 'telegram_task_notification']) }}
  • {{ __('New Invoice') }}
    {{ Form::checkbox('telegram_invoice_notificaation', '1', isset($settings['telegram_invoice_notificaation']) && $settings['telegram_invoice_notificaation'] == '1' ? 'checked' : '', ['class' => 'custom-control-input', 'id' => 'telegram_invoice_notificaation']) }}
  • {{ __('Task Stage Updated') }}
    {{ Form::checkbox('telegram_task_move_notificaation', '1', isset($settings['telegram_task_move_notificaation']) && $settings['telegram_task_move_notificaation'] == '1' ? 'checked' : '', ['class' => 'custom-control-input', 'id' => 'telegram_task_move_notificaation']) }}
  • {{ __('New Milestone') }}
    {{ Form::checkbox('telegram_mileston_notificaation', '1', isset($settings['telegram_mileston_notificaation']) && $settings['telegram_mileston_notificaation'] == '1' ? 'checked' : '', ['class' => 'custom-control-input', 'id' => 'telegram_mileston_notificaation']) }}
  • {{ __('Milestone Status Updated') }}
    {{ Form::checkbox('telegram_milestone_status_notificaation', '1', isset($settings['telegram_milestone_status_notificaation']) && $settings['telegram_milestone_status_notificaation'] == '1' ? 'checked' : '', ['class' => 'custom-control-input', 'id' => 'telegram_milestone_status_notificaation']) }}
  • {{ __('Invoice Status Updated') }}
    {{ Form::checkbox('telegram_invoice_status_notificaation', '1', isset($settings['telegram_invoice_status_notificaation']) && $settings['telegram_invoice_status_notificaation'] == '1' ? 'checked' : '', ['class' => 'custom-control-input', 'id' => 'telegram_invoice_status_notificaation']) }}
{{ Form::close() }}
@endif @if (Auth::user()->type != 'client')
{{ Form::open(['route' => ['calendar.setting'], 'id' => 'update_setting', 'enctype' => 'multipart/form-data']) }}
{{ __('Google Calendar') }}
{{ Form::checkbox('is_enabled', 'on', isset($settings['is_enabled']) && $settings['is_enabled'] == 'on' ? 'checked' : '', ['class' => 'custom-control-input', 'id' => 'is_enabled']) }}
{{-- --}} {{ Form::text('google_clender_id', isset($settings['google_clender_id']) ? $settings['google_clender_id'] : '', ['class' => 'form-control']) }}
{{ Form::label('google_calender_json_file', __('Google Calendar Json File'), ['class' => 'form-control-label']) }}
{{ Form::hidden('from', 'google_setting') }}
{{ Form::close() }}
@endif @if (Auth::user()->type != 'client')
{{ __('Webhook') }}
@php $webhooks = App\Models\Webhook::where('created_by', Auth::user()->id)->get(); @endphp @foreach ($webhooks as $webhook) @endforeach
{{ __('Module') }} {{ __('URL') }} {{ __('Method') }} {{ __('Action') }}
{{ $webhook->module }} {{ $webhook->url }} {{ $webhook->method }} {!! Form::open([ 'method' => 'DELETE', 'route' => ['webhook.destroy', $webhook->id], 'id' => 'delete-webhook-' . $webhook->id, ]) !!} {!! Form::close() !!}
@endif @if (Auth::user()->type != 'client')
{{ __('Email Settings') }}
{{ Form::open(['route' => ['settings.store'], 'id' => 'update_setting']) }}
{{ Form::label('mail_driver', __('Mail Driver'), ['class' => 'form-control-label']) }} {{ Form::text('mail_driver', isset($settings['mail_driver']) ? $settings['mail_driver'] : '' , ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Mail Driver')]) }}
{{ Form::label('mail_host', __('Mail Host'), ['class' => 'form-control-label']) }} {{ Form::text('mail_host', isset($settings['mail_host']) ? $settings['mail_host'] : '', ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Mail Host')]) }}
{{ Form::label('mail_port', __('Mail Port'), ['class' => 'form-control-label']) }} {{ Form::number('mail_port',isset($settings['mail_port']) ? $settings['mail_port'] : '', ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Mail Port'), 'min' => '0']) }}
{{ Form::label('mail_username', __('Mail Username'), ['class' => 'form-control-label']) }} {{ Form::text('mail_username', isset($settings['mail_username']) ? $settings['mail_username'] : '', ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Mail Username')]) }}
{{ Form::label('mail_password', __('Mail Password'), ['class' => 'form-control-label']) }} {{ Form::text('mail_password', isset($settings['mail_password']) ? $settings['mail_password'] : '', ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Mail Password')]) }}
{{ Form::label('mail_encryption', __('Mail Encryption'), ['class' => 'form-control-label']) }} {{ Form::text('mail_encryption', isset($settings['mail_encryption']) ? $settings['mail_encryption'] : '', ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Mail Encryption')]) }}
{{ Form::label('mail_from_address', __('Mail From Address'), ['class' => 'form-control-label']) }} {{ Form::text('mail_from_address', isset($settings['mail_from_address']) ? $settings['mail_from_address'] : '', ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Mail From Address')]) }}
{{ Form::label('mail_from_name', __('Mail From Name'), ['class' => 'form-control-label']) }} {{ Form::text('mail_from_name', isset($settings['mail_from_name']) ? $settings['mail_from_name'] : '', ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Mail From Name')]) }}
{{ Form::hidden('from', 'mail') }}
{{ Form::close() }}
@endif
@endsection @push('script') @endpush