@extends('layouts.admin') @section('title', 'Contact Management') @section('content') @php $authCheck = auth()->check(); $permission= auth()->user(); @endphp
{{--
--}} {{--
--}}
@foreach($contacts as $key => $contact) @if($authCheck && $permission->hasPermission('contacts-show')) @endif @endforeach
S.No. Full Name Email Subject Actions
{{ $key + 1 }} {{ $contact->full_name }} {{ $contact->email }} {{ $contact->subject }}
@endsection