403Webshell
Server IP : 138.197.107.151  /  Your IP : 216.73.217.7
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux BloxBy-Builder 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64
User : wpbetasites_mrakzqskir ( 1022)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/shark-admin/resources/views/partials/messages/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/shark-admin/resources/views/partials/messages/messages.blade.php
@if(session('success') || session('status') || session('error') || $errors->any())
<div aria-live="polite" aria-atomic="true" class="position-relative">
  <div class="toast-container position-fixed top-0 end-0 p-3" style="z-index:1080">

    {{-- ✅ Status Toast --}}
    @if (session('status'))
    <div class="toast bg-success text-white border-0" role="alert" aria-live="assertive" aria-atomic="true" data-bs-delay="5000">
      <div class="d-flex justify-content-between align-items-center">
        <div class="toast-body">
          {{ session('status') }}
        </div>
        <button type="button" class="btn-close btn-close-white ms-2 me-1 toast-close" data-bs-dismiss="toast" aria-label="Close"><span aria-hidden="true">&times;</span></button>
      </div>
    </div>
    @endif

    {{-- ✅ Success Toast --}}
    @if(session('success'))
    <div class="toast bg-success text-white border-0" role="alert" aria-live="assertive" aria-atomic="true" data-bs-delay="5000">
      <div class="d-flex justify-content-between align-items-center">
        <div class="toast-body">
          {{ session('success') }}
        </div>
        <button type="button" class="btn-close btn-close-white ms-2 me-1 toast-close" data-bs-dismiss="toast" aria-label="Close"><span aria-hidden="true">&times;</span></button>
      </div>
    </div>
    @endif

    @if(session('message'))
    <div class="toast bg-danger text-white border-0" role="alert" aria-live="assertive" aria-atomic="true" data-bs-delay="5000">
      <div class="d-flex justify-content-between align-items-center">
        <div class="toast-body">
          {{ session('message') }}
        </div>
        <button type="button" class="btn-close btn-close-white ms-2 me-1 toast-close" data-bs-dismiss="toast" aria-label="Close"><span aria-hidden="true">&times;</span></button>
      </div>
    </div>
    @endif
    {{-- ❌ Error Toast --}}
    @if(session('error'))
    <div class="toast bg-danger text-white border-0" role="alert" aria-live="assertive" aria-atomic="true" data-bs-delay="5000">
      <div class="d-flex justify-content-between align-items-center">
        <div class="toast-body">
          {{ session('error') }}
        </div>
        <button type="button" class="btn-close btn-close-white ms-2 me-1 toast-close" data-bs-dismiss="toast" aria-label="Close"><span aria-hidden="true">&times;</span></button>
      </div>
    </div>
    @endif

    {{-- ⚠ Validation Errors --}}
    @if($errors->any())
    <div class="toast bg-danger text-white border-0" role="alert" aria-live="assertive" aria-atomic="true" data-bs-delay="7000">
      <div class="d-flex justify-content-between align-items-center">
        <div class="toast-body">
          <ul class="mb-0">
            @foreach($errors->all() as $error)
              <li>{{ $error }}</li>
            @endforeach
          </ul>
        </div>
        <button type="button" class="btn-close btn-close-white ms-2 me-1 toast-close" data-bs-dismiss="toast" aria-label="Close"><span aria-hidden="true">&times;</span></button>
      </div>
    </div>
    @endif

  </div>
</div>
@endif

@push('scripts')
<script>
document.addEventListener("DOMContentLoaded", function () {
  const toastElList = [].slice.call(document.querySelectorAll('.toast'));

  toastElList.forEach(function (toastEl) {
    // Bootstrap toast instance
    const toast = new bootstrap.Toast(toastEl, { delay: 5000 });

    // Entry animation
    setTimeout(() => toastEl.classList.add('toast-enter'), 50);
    toast.show();

    // Exit animation before hiding
    toastEl.addEventListener('hide.bs.toast', () => {
      toastEl.classList.remove('toast-enter');
      toastEl.classList.add('toast-exit');
    });

    // Remove from DOM after animation
    toastEl.addEventListener('hidden.bs.toast', () => {
      toastEl.remove();
    });
  });
});
</script>
@endpush

Youez - 2016 - github.com/yon3zu
LinuXploit