Viewing File: /home/ubuntu/btcthrottle-backend/resources/views/admin/settings/settings.blade.php

@extends('layouts.admin') 

@section('title') 
  {{ tr('settings') }} 
@endsection

@section('content-header', tr('settings'))  

@section('breadcrumbs')
<li class="breadcrumb-item active">
  {{ tr('settings') }}
</li>
@endsection

@section('content')
<div class="row">
<div class="col-12">
    <div class="bs-stepper wizard-modern wizard-modern-vertical-icons-example mt-2">
      <div class="bs-stepper-header">
        <div class="step" data-target="#site-settings">
          <button type="button" class="step-trigger">
            <span class="bs-stepper-circle">
              <i class="fa fa-hammer"></i>
            </span>
            <span class="bs-stepper-label">
              <span class="bs-stepper-title">{{ tr('site_settings') }}</span>
            </span>
          </button>
        </div>
        <div class="line"></div>
        <div class="step" data-target="#contact-setting">
          <button type="button" class="step-trigger">
            <span class="bs-stepper-circle"><i class="fa fa-user"></i>
            </span>
            <span class="bs-stepper-label">
              <span class="bs-stepper-title">{{ tr('contact_settings') }}</span>
            </span>
          </button>
        </div>
        <!-- <div class="line"></div>
        <div class="step" data-target="#social-logins">
          <button type="button" class="step-trigger">
            <span class="bs-stepper-circle"><i class="ti ti-lock"></i>
            </span>
            <span class="bs-stepper-label">
              <span class="bs-stepper-title">{{ tr('social_logins') }}</span>
            </span>
          </button>
        </div>
        <div class="line"></div>
        <div class="step" data-target="#payment-settings">
          <button type="button" class="step-trigger">
            <span class="bs-stepper-circle"><i class="ti ti-credit-card"></i>
            </span>
            <span class="bs-stepper-label">
              <span class="bs-stepper-title">{{ tr('payment_settings') }}</span>
            </span>
          </button>
        </div> -->
        <div class="line"></div>
        <div class="step" data-target="#social-link-settings">
          <button type="button" class="step-trigger">
              <span class="bs-stepper-circle"><i class="fa fa-cogs"></i></span>
              <span class="bs-stepper-label">
                  <span class="bs-stepper-title">{{ tr('social_settings') }}</span>
              </span>
          </button>
      </div>
        <div class="line"></div>
      </div>
      <div class="bs-stepper-content">
          <!-- Account Details -->
          <div id="site-settings" class="content">
            <form method="POST" id="staticpageForm" action="{{ route('admin.settings.save') }}" enctype="multipart/form-data">
              @csrf
            <div class="content-header mb-3">
              <h6 class="mb-0">{{ tr('site_settings') }}</h6>
            </div>
             <div class="row g-3">
                <div class="col-sm-6">
                  <label class="form-label" for="site_name">{{ tr('site_name') }} *</label>
                  <input type="text" id="site_name" name="site_name" class="form-control" placeholder="{{ tr('site_name') }}" value="{{ old('site_name', Setting::get('site_name')) }}" required/>
                </div>
                <div class="col-sm-6">
                  <label class="form-label" for="email">{{ tr('frontend_url') }} *</label>
                  <input type="text" id="frontend_url" name="frontend_url" placeholder="{{ tr('frontend_url') }}" value="{{ old('frontend_url', Setting::get('frontend_url')) }}" title="{{ tr('frontend_url') }}" class="form-control" required />
                </div>
                <div class="col-sm-6">
                  <label class="form-label" for="email">{{ tr('site_logo') }}</label>
                  <input type="file" name="site_logo" id="site_logo" placeholder="{{ tr('site_logo') }}" accept=".png, .jpg, .jpeg" class="form-control"/>
                  <div class="d-flex align-items-start align-items-sm-center gap-4">
                    <img src="{{Setting::get('site_logo')}}" alt="user-avatar" class="setting-img" id="siteLogo" />
                  </div>
                </div>
                <div class="col-sm-6">
                  <label class="form-label" for="email">{{ tr('site_icon') }}</label>
                  <input type="file" name="site_icon" id="site_icon" placeholder="{{ tr('site_icon') }}" accept=".png, .jpg, .jpeg" class="form-control"/>
                  <div class="d-flex align-items-start align-items-sm-center gap-4">
                    <img src="{{Setting::get('site_icon')}}" alt="user-avatar" class="setting-img" id="siteIcon" />
                  </div>
                </div>
                <div class="col-sm-12">
                  <label class="form-label" for="username">{{ tr('tag_name') }}</label>
                  <input type="text" id="tag_name" name="tag_name" class="form-control" placeholder="{{ tr('tag_name') }}" value="{{ old('tag_name', Setting::get('tag_name')) }}" />
                </div>
                <div class="col-sm-12">
                  <label class="form-label" for="username">{{ tr('footer_description') }}</label>
                  <textarea type="text" id="footer_description" name="footer_description" class="form-control" placeholder="{{ tr('footer_description') }}">{{ old('footer_description') ?: Setting::get('footer_description') }}</textarea>
                </div>
                <div class="col-12 d-flex justify-content-end">
                  <button class="btn btn-label-secondary btn-prev">
                    <a href="{{ route('admin.settings') }}" class="align-middle d-sm-inline-block d-none">{{ tr('cancel') }}</a>
                  </button>
                  &nbsp;
                  <button type="submit" class="btn btn-primary align-middle d-sm-inline-block d-none me-sm-1">{{ tr('submit') }}</button>
                </div>
              </div>
            </form>
          </div>
          <!-- Social Links -->
          <div id="contact-setting" class="content">
             <form method="POST" action="{{ route('admin.settings.save') }}" enctype="multipart/form-data">
              @csrf
              <div class="content-header mb-3">
                <h6 class="mb-0">{{ tr('contact_settings') }}</h6>
              </div>
            <div class="row g-3">
              <div class="col-sm-6">
                <label class="form-label" for="address-input">{{tr('contact_mobile')}}</label>
                <input type="text" class="form-control" id="contact_mobile" name="contact_mobile" placeholder="Enter {{tr('contact_mobile')}}" value="{{old('contact_mobile') ?: Setting::get('contact_mobile') }}">
              </div>
              <div class="col-sm-6">
                <label class="form-label" for="address-input">{{tr('contact_email')}}</label>
                <input type="text" class="form-control" type="link" id="contact_email" name="contact_email" placeholder="Enter {{tr('contact_email')}}" value="{{old('contact_email') ?: Setting::get('contact_email') }}">
              </div>
              <div class="col-sm-6">
                <label class="form-label" for="address-input">{{tr('contact_address')}}</label>
                <input type="text" class="form-control" id="contact_address" name="contact_address" placeholder="Enter {{tr('contact_address')}}" value="{{old('contact_address') ?: Setting::get('contact_address') }}">
              </div> 
              <div class="col-sm-6">
                <label class="form-label" for="address-input">{{tr('copyright_content')}}</label>
                <input type="text" class="form-control" type="link" id="copyright_content" name="copyright_content" placeholder="Enter {{tr('copyright_content')}}" value="{{old('copyright_content') ?: Setting::get('copyright_content') }}">
              </div>
              <div class="col-12 d-flex justify-content-end">
                  <button class="btn btn-label-secondary btn-prev">
                    <a href="{{ route('admin.settings') }}" class="align-middle d-sm-inline-block d-none">{{ tr('cancel') }}</a>
                  </button>
                  &nbsp;
                  <button type="submit" class="btn btn-primary align-middle d-sm-inline-block d-none me-sm-1">{{ tr('submit') }}</button>
                </div>
              </div>
            </form>
          </div>
          <div id="social-logins" class="content">
           <form method="POST" action="{{ route('admin.settings.save') }}" enctype="multipart/form-data">
              @csrf
              <div class="content-header mb-3">
                <h6 class="mb-0">{{ tr('social_logins') }}</h6>
              </div>
            <div class="row g-3">
              <div class="col-sm-6">
                  <label class="form-label" for="MAIL_MAILER">{{tr('fb_client_id')}}</label>
                  <input type="link" id="FB_CLIENT_ID" name="FB_CLIENT_ID" placeholder="Enter {{tr('fb_client_id')}}" value="{{old('FB_CLIENT_ID') ?: Setting::get('FB_CLIENT_ID') }}" class="form-control"/>
              </div>
              <div class="col-sm-6">
                  <label class="form-label" for="MAIL_MAILER">{{tr('fb_client_secret')}}</label>
                  <input type="link" class="form-control" id="FB_CLIENT_SECRET" name="FB_CLIENT_SECRET" placeholder="Enter {{tr('fb_client_secret')}}" value="{{old('FB_CLIENT_SECRET') ?: Setting::get('FB_CLIENT_SECRET') }}" class="form-control"/>
              </div>
              <div class="col-sm-6">
                  <label class="form-label" for="MAIL_MAILER">{{tr('fb_call_back')}}</label>
                  <input type="link" id="FB_CALL_BACK" name="FB_CALL_BACK" placeholder="Enter {{tr('fb_call_back')}}" value="{{old('FB_CALL_BACK') ?: Setting::get('FB_CALL_BACK') }}" class="form-control"/>
              </div>
              <div class="col-sm-6">
                  <label class="form-label" for="MAIL_MAILER">{{tr('google_client_id')}}</label>
                  <input type="link" id="GOOGLE_CLIENT_ID" name="GOOGLE_CLIENT_ID" placeholder="Enter {{tr('google_client_id')}}" value="{{old('GOOGLE_CLIENT_ID') ?: Setting::get('GOOGLE_CLIENT_ID') }}" class="form-control"/>
              </div>
              <div class="col-sm-6">
                  <label class="form-label" for="MAIL_MAILER">{{tr('google_client_secret')}}</label>
                  <input type="link" id="GOOGLE_CLIENT_SECRET" name="GOOGLE_CLIENT_SECRET" placeholder="Enter {{tr('google_client_secret')}}" value="{{old('GOOGLE_CLIENT_SECRET') ?: Setting::get('GOOGLE_CLIENT_SECRET') }}" class="form-control"/>
              </div>
              <div class="col-sm-6">
                  <label class="form-label" for="MAIL_MAILER">{{tr('google_call_back')}}</label>
                  <input type="link" id="GOOGLE_CALL_BACK" name="GOOGLE_CALL_BACK" placeholder="Enter {{tr('google_call_back')}}" value="{{old('GOOGLE_CALL_BACK') ?: Setting::get('GOOGLE_CALL_BACK') }}" class="form-control"/>
              </div>
              <div class="col-12 d-flex justify-content-end">
                  <button class="btn btn-label-secondary btn-prev">
                    <a href="{{ route('admin.settings') }}" class="align-middle d-sm-inline-block d-none">{{ tr('cancel') }}</a>
                  </button>
                  &nbsp;
                  <button type="submit" class="btn btn-primary align-middle d-sm-inline-block d-none me-sm-1">{{ tr('submit') }}</button>
                </div>
              </div>
            </form>
          </div>
          <div id="payment-settings" class="content">
            <form method="POST" action="{{ route('admin.settings.save') }}" enctype="multipart/form-data">
              @csrf
              <div class="content-header mb-3">
                <h6 class="mb-0">{{ tr('payment_settings') }}</h6>
              </div>
            <div class="row g-3">
              <div class="col-sm-6">
                  <label class="form-label" for="stripe_publishable_key">{{tr('stripe_publishable_key')}}</label>
                  <input type="link" id="stripe_publishable_key" name="stripe_publishable_key" placeholder="Enter {{tr('stripe_publishable_key')}}" value="{{old('stripe_publishable_key') ?: Setting::get('stripe_publishable_key') }}" class="form-control"/>
              </div>
              <div class="col-sm-6">
                  <label class="form-label" for="stripe_secret_key">{{tr('stripe_secret_key')}}</label>
                  <input type="link" id="stripe_secret_key" name="stripe_secret_key" placeholder="Enter {{tr('stripe_secret_key')}}" value="{{old('stripe_secret_key') ?: Setting::get('stripe_secret_key') }}" class="form-control"/>
              </div>
              <div class="col-sm-6">
                  <label class="form-label" for="currency">{{tr('currency')}}</label>
                  <input type="link" id="currency" name="currency" placeholder="Enter {{tr('currency')}}" value="{{old('currency') ?: Setting::get('currency') }}" class="form-control"/>
              </div>
              <div class="col-sm-6">
                  <label class="form-label" for="currency_code">{{tr('currency_code')}}</label>
                  <input type="link" id="currency_code" name="currency_code" placeholder="Enter {{tr('currency_code')}}" value="{{old('currency_code') ?: Setting::get('currency_code') }}" class="form-control"/>
              </div>
              <div class="col-12 d-flex justify-content-end">
                  <button class="btn btn-label-secondary btn-prev">
                    <a href="{{ route('admin.settings') }}" class="align-middle d-sm-inline-block d-none">{{ tr('cancel') }}</a>
                  </button>
                  &nbsp;
                  <button type="submit" class="btn btn-primary align-middle d-sm-inline-block d-none me-sm-1">{{ tr('submit') }}</button>
                </div>
              </div>
            </form>
        </div>
        <div id="social-link-settings" class="content">
             <form method="POST" action="{{ route('admin.settings.save') }}" enctype="multipart/form-data">
              @csrf
              <div class="content-header mb-3">
                <h6 class="mb-0">{{ tr('social_settings') }}</h6>
              </div>
            <div class="row g-3">
              <div class="col-sm-6">
                  <label class="form-label" for="facebook_link">{{tr('facebook_link')}}</label>
                  <input type="link" id="facebook_link" name="facebook_link" placeholder="Enter {{tr('facebook_link')}}" value="{{old('facebook_link') ?: Setting::get('facebook_link') }}" class="form-control"/>
              </div>
              <div class="col-sm-6">
                  <label class="form-label" for="linkedin_link">{{tr('linkedin_link')}}</label>
                  <input type="link" id="linkedin_link" name="linkedin_link" placeholder="Enter {{tr('linkedin_link')}}" value="{{old('linkedin_link') ?: Setting::get('linkedin_link') }}" class="form-control"/>
              </div>
              <div class="col-sm-6">
                  <label class="form-label" for="twitter_link">{{tr('twitter_link')}}</label>
                  <input type="link" id="twitter_link" name="twitter_link" placeholder="Enter {{tr('twitter_link')}}" value="{{old('twitter_link') ?: Setting::get('twitter_link') }}" class="form-control"/>
              </div>
              <div class="col-sm-6">
                  <label class="form-label" for="pinterest_link">{{tr('pinterest_link')}}</label>
                  <input type="link" id="pinterest_link" name="pinterest_link" placeholder="Enter {{tr('pinterest_link')}}" value="{{old('pinterest_link') ?: Setting::get('pinterest_link') }}" class="form-control"/>
              </div>
               <div class="col-sm-6">
                  <label class="form-label" for="instagram_link">{{tr('instagram_link')}}</label>
                  <input type="link"  id="instagram_link" name="instagram_link" placeholder="Enter {{tr('instagram_link')}}" value="{{old('instagram_link') ?: Setting::get('instagram_link') }}" class="form-control"/>
              </div>
               <div class="col-sm-6">
                  <label class="form-label" for="twitch_link">{{tr('twitch_link')}}</label>
                  <input type="link" id="twitch_link" name="twitch_link" placeholder="Enter {{tr('twitch_link')}}" value="{{old('twitch_link') ?: Setting::get('twitch_link') }}" class="form-control"/>
              </div>
               <div class="col-sm-6">
                  <label class="form-label" for="youtube_link">{{tr('youtube_link')}}</label>
                  <input type="link" id="youtube_link" name="youtube_link" placeholder="Enter {{tr('youtube_link')}}" value="{{old('youtube_link') ?: Setting::get('youtube_link') }}" class="form-control"/>
              </div>
               <div class="col-sm-6">
                  <label class="form-label" for="snapchat_link">{{tr('snapchat_link')}}</label>
                  <input type="link" id="snapchat_link" name="snapchat_link" placeholder="Enter {{tr('snapchat_link')}}" value="{{old('snapchat_link') ?: Setting::get('snapchat_link') }}" class="form-control"/>
              </div>
               <div class="col-sm-6">
                  <label class="form-label" for="telegram_link">{{tr('telegram_link')}}</label>
                  <input type="link" id="telegram_link" name="telegram_link" placeholder="Enter {{tr('telegram_link')}}" value="{{old('telegram_link') ?: Setting::get('telegram_link') }}" class="form-control"/>
              </div>
               <div class="col-sm-6">
                  <label class="form-label" for="discord_link">{{tr('discord_link')}}</label>
                  <input type="link" class="form-control" id="discord_link" name="discord_link" placeholder="Enter {{tr('discord_link')}}" value="{{old('discord_link') ?: Setting::get('discord_link') }}"/>
              </div>
              <div class="col-12 d-flex justify-content-end">
                  <button class="btn btn-label-secondary btn-prev">
                    <a href="{{ route('admin.settings') }}" class="align-middle d-sm-inline-block d-none">{{ tr('cancel') }}</a>
                  </button>
                  &nbsp;
                  <button type="submit" class="btn btn-primary align-middle d-sm-inline-block d-none me-sm-1">{{ tr('submit') }}</button>
                </div>
              </div>
            </form>
        </div>
  </div>
</div>
</div>
@endsection

@section('scripts')
  <script type="text/javascript">
      
    site_logo.onchange = e => {
     const [file] = site_logo.files;
     if(file) {
        siteLogo.src = URL.createObjectURL(file)
     }
    }

    site_icon.onchange = e => {
     const [file] = site_icon.files;
     if(file) {
        siteIcon.src = URL.createObjectURL(file)
     }
    }
  </script>
@endsection
Back to Directory File Manager