Skip to content

Commit

Permalink
fix details modal with multiple cc and bcc
Browse files Browse the repository at this point in the history
  • Loading branch information
danilopolani committed Oct 30, 2023
1 parent 3ba1799 commit 164755c
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions resources/views/modals/details.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,26 @@
@if ($log->cc)
<div>
<p class="font-bold mb-1">Cc</p>
@if ($log->cc->name)
<p>{{ $log->cc->name }} &lt;{{ $log->cc->email }}&gt;</p>
@else
<p>{{ $log->cc->email }}</p>
@endif
@foreach ($log->cc as $cc)
@if ($cc->name)
<p>{{ $cc->name }} &lt;{{ $cc->email }}&gt;</p>
@else
<p>{{ $cc->email }}</p>
@endif
@endforeach
</div>
@endif

@if ($log->bcc)
<div>
<p class="font-bold mb-1">Bcc</p>
@if ($log->bcc->name)
<p>{{ $log->bcc->name }} &lt;{{ $log->bcc->email }}&gt;</p>
@else
<p>{{ $log->bcc->email }}</p>
@endif
@foreach ($log->bcc as $bcc)
@if ($bcc->name)
<p>{{ $bcc->name }} &lt;{{ $bcc->email }}&gt;</p>
@else
<p>{{ $bcc->email }}</p>
@endif
@endforeach
</div>
@endif

Expand Down

0 comments on commit 164755c

Please sign in to comment.