 @if ($isi == 'notif')
     @forelse ($cek as $c)
         <a href="/pesan" class="dropdown-item">
             <i class="fas fa-envelope mr-2"></i>{{ $c->nama }} <br>
             <span class="float-right text-muted text-sm">{{ tgl_inf($c->created_at) }}</span>
         </a>
         {{-- <div class="dropdown-divider"></div> --}}
     @empty
     @endforelse
 @elseif ($isi == 'lihat')
     <table class="table table-bordered table-sm">
         <tr>
             <td width="25%">Pengirim</td>
             <td width="2%">:</td>
             <td>{{ $c->nama }}</td>
         </tr>
         <tr>
             <td>Email</td>
             <td>:</td>
             <td>{{ $c->email }}</td>
         </tr>
         <tr>
             <td>Subjek</td>
             <td>:</td>
             <td>{{ $c->subjek }}</td>
         </tr>
         <tr>
             <td>Tgl. Kirim</td>
             <td>:</td>
             <td>{{ tgl_inf($c->created_at) }}</td>
         </tr>
         <tr>
             <td colspan="3" class="text-center bg-warning">Isi pesan</td>
         </tr>
         <tr>
             <td colspan="3">{{ $c->pesan }}</td>
         </tr>
     </table>
 @endif
