@extends('includes.layout') @section('content')
Name | To | Subject | cc | On/off | MODIFY | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
{{ $storeName->store_name }} | @php $found = false; // Initialize flag to check if a match is found @endphp @foreach ($toggle as $toggles) @if ($storeName->dist_id == $toggles->dist_id) @php $found = true; @endphp{{ $toggles->to_mail }} | {{ $toggles->subject }} | {{ $toggles->cc }} |
toggle == '1' ? 'checked' : '' }}>
|
@endif @endforeach @if (!$found) |
|
@endif |