PHP Classes

File: resources/views/backend/partials/messages.blade.php

Recommend this page to a friend!
  Classes of Maniruzzaman Akash   Devs Hunt   resources/views/backend/partials/messages.blade.php   Download  
File: resources/views/backend/partials/messages.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Devs Hunt
Manage courses and student enrolment
Author: By
Last change:
Date: 3 months ago
Size: 1,475 bytes
 

Contents

Class file image Download
@if ($errors->any())
    <div class="alert alert-danger alert-dismissible fade show" role="alert">
        {{-- <svg class="bi flex-shrink-0 me-2" role="img" aria-label="Danger:">
            <use xlink:href="#exclamation-triangle-fill" />
        </svg> --}}
        @foreach ($errors->all() as $error)
            <span>{{ $error }}. </span>
        @endforeach
        <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
    </div>
@endif

{{-- if has any session with key success show it. --}}
@if (session()->has('success'))
    <div class="alert alert-success alert-dismissible fade show" role="alert">
        {{-- <svg class="bi flex-shrink-0 me-2" role="img" aria-label="Success:">
            <use xlink:href="#check-circle-fill" />
        </svg> --}}
        <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
        <div>
            {{ session()->get('success') }}
        </div>
    </div>
@endif

{{-- If has any error --}}
@if (session()->has('error'))
    <div class="alert alert-danger alert-dismissible fade show" role="alert">
        {{-- <svg class="bi flex-shrink-0 me-2" role="img" aria-label="Success:">
            <use xlink:href="#check-circle-fill" />
        </svg> --}}
        <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
        <div>
            {{ session()->get('error') }}
        </div>
    </div>
@endif