@props([ 'selectRecord' => false, 'selectAll' => false, 'checked' => [], 'recList' => null, ]) @if (session()->has('message')) @php $icons = [ 'alert-success' => 'fa-check-circle', 'alert-danger' => 'fa-times-circle', 'alert-warning' => 'fa-exclamation-triangle', 'alert-info' => 'fa-info-circle']; $alertClass = session('alert-class', 'alert-info'); $icon = $icons[$alertClass] ?? 'fa-info-circle'; @endphp @endif @if (session()->has('errorMessage'))
{!! session('errorMessage') !!}
@endif @if (session()->has('error'))
{!! session('error') !!}
@endif @if ($selectRecord) @if ($selectAll)
You have selected all {{ $recList->total() }} records.
@else
You have selected {{ count($checked) }} records, Do you want to Select All {{ $recList->total() }} records?
@endif @endif