@extends('setting.nav') @section('title', 'Home Page') @section('content')

Sender Emails

Important Mail {{ $total_impmail ?? 0 }}
Not Important Mail {{ $total_not_impmail ?? 0 }}
Save Changes + Add Group
@if (session('success')) @endif
Email Grouping
@if ($emails->isEmpty())

No mails available

@else @foreach ($emails as $index => $email) {{-- --}} @if ($email->group_id == 0) @else @endif @endforeach
Important Mail ID Sender Name Sender Email Actions
important_mail == 0 ? 'checked' : '' }}> {{ $email->id }}{{ $loop->iteration }} {{ $email->sender_name }} {{ $email->sender_email }}
@csrf
@foreach ($groups as $group) @if ($group->id == $email->group_id) {{ $group->group_name }} @break @endif @endforeach
@endif
@endsection