@extends('layouts.admin') @section('page-title') {{ __('Settings') }} @endsection @php $logo = \App\Models\Utility::get_file('uploads/logo/'); $lang = \App\Models\Utility::getValByName('company_default_language'); $logo_img = \App\Models\Utility::getValByName('company_logo'); $logo_light_img = \App\Models\Utility::getValByName('company_logo_light'); $company_favicon = \App\Models\Utility::getValByName('company_favicon'); $setting = App\Models\Utility::settings(); @endphp @section('breadcrumb') @endsection @section('title') {{ __('Settings') }} @endsection @push('custom-scripts') @endpush @section('content')
{{ Form::model($settings, ['route' => 'company.settings.store', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }}
{{ __('Site Settings') }}
{{ __('Edit your site details') }}
{{ __('Logo Dark') }}
@error('logo') @enderror
{{ __('Logo Light') }}
@error('logo-light') {{ $message }} @enderror
{{ __('Favicon') }}
@error('logo')
@enderror
{{ Form::label('title_text', __('Title Text'), ['class' => 'form-label']) }} {{ Form::text('title_text', null, ['class' => 'form-control', 'placeholder' => __('Title Text')]) }} @error('title_text') {{ $message }} @enderror
{{ Form::label('timezone', __('Timezone'), ['class' => 'form-label']) }}
{{ Form::label('default_language', __('Default Language'), ['class' => 'form-label']) }}
{{ Form::label('SITE_RTL', __('Enable RTL'), ['class' => 'form-label']) }}

{{ __('Theme Customizer') }}

{{ __('Primary Color Settings') }}


{{ __('Sidebar Settings') }}

{{ __('Layout Settings') }}

{{ Form::close() }}
{{ Form::open(['url' => route('setting.GoogleCalendaSetting'), 'enctype' => 'multipart/form-data']) }}
{{ __('Google Calendar Settings') }}
{{ __('Edit your Google Calendar') }}
{{ Form::close() }}
{{-- Webhook Setting Start--}}
{{ __('Webhook Settings') }}
@foreach ($webhook as $webhook_detail) @endforeach
{{__('Module')}} {{__('Method')}} {{__('URL')}} {{__('Action')}}
{{ $webhook_detail->module }} {{ $webhook_detail->method }} {{ $webhook_detail->url }}
{!! Form::open(['method' => 'DELETE', 'route' => ['webhook.destroy', $webhook_detail->id],'id'=>'delete-form-'.$webhook_detail->id]) !!} {!! Form::close() !!}
{{-- Webhook Setting End--}} {{-- Email Setting Start --}}
{{ __('Email Settings') }}
{{ __('Edit your email details') }}
{{ Form::open(['route' => 'company.email.settings', 'method' => 'post']) }}
{{ Form::label('mail_driver', __('Mail Driver'), ['class' => 'form-label']) }} {{ Form::text('mail_driver',$settings['mail_driver'], ['class' => 'form-control', 'placeholder' => __('Enter Mail Driver')]) }} @error('mail_driver') {{ $message }} @enderror
{{ Form::label('mail_host', __('Mail Host'), ['class' => 'form-label']) }} {{ Form::text('mail_host', $settings['mail_host'], ['class' => 'form-control ', 'placeholder' => __('Enter Mail Host')]) }} @error('mail_host') {{ $message }} @enderror
{{ Form::label('mail_port', __('Mail Port'), ['class' => 'form-label']) }} {{ Form::text('mail_port', $settings['mail_port'], ['class' => 'form-control', 'placeholder' => __('Enter Mail Port')]) }} @error('mail_port') {{ $message }} @enderror
{{ Form::label('mail_username', __('Mail Username'), ['class' => 'form-label']) }} {{ Form::text('mail_username', $settings['mail_username'], ['class' => 'form-control', 'placeholder' => __('Enter Mail Username')]) }} @error('mail_username') {{ $message }} @enderror
{{ Form::label('mail_password', __('Mail Password'), ['class' => 'form-label']) }} {{ Form::text('mail_password', $settings['mail_password'], ['class' => 'form-control', 'placeholder' => __('Enter Mail Password')]) }} @error('mail_password') {{ $message }} @enderror
{{ Form::label('mail_encryption', __('Mail Encryption'), ['class' => 'form-label']) }} {{ Form::text('mail_encryption', $settings['mail_encryption'], ['class' => 'form-control', 'placeholder' => __('Enter Mail Encryption')]) }} @error('mail_encryption') {{ $message }} @enderror
{{ Form::label('mail_from_address', __('Mail From Address'), ['class' => 'form-label']) }} {{ Form::text('mail_from_address', $settings['mail_from_address'], ['class' => 'form-control', 'placeholder' => __('Enter Mail From Address')]) }} @error('mail_from_address') {{ $message }} @enderror
{{ Form::label('mail_from_name', __('Mail From Name'), ['class' => 'form-label']) }} {{ Form::text('mail_from_name', $settings['mail_from_name'], ['class' => 'form-control', 'placeholder' => __('Enter Mail From Name')]) }} @error('mail_from_name') {{ $message }} @enderror
{{ Form::close() }}
{{-- Email Setting End --}}
@endsection @push('custom-scripts') @endpush