generated from spatie/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhanched view attachments layout. Updated screenshot.
- Loading branch information
1 parent
1bdd986
commit 657f9f6
Showing
2 changed files
with
20 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
<div> | ||
<?php $attachments = $getRecord()->attachments; ?> | ||
@if(!empty($attachments)) | ||
<ul class="max-w-md divide-y divide-gray-200 dark:divide-gray-700"> | ||
@foreach($attachments as $attachment) | ||
<li class="pb-4 pt-4 sm:pb-4"> | ||
<div class="flex items-center space-x-4 rtl:space-x-reverse"> | ||
<div class="flex-1 min-w-0"> | ||
<p class="text-sm font-medium text-gray-900 truncate dark:text-white"> | ||
<strong>{{ $attachment['name'] }}</strong> | ||
</p> | ||
</div> | ||
<div class="inline-flex items-center text-base font-semibold text-gray-900 dark:text-white"> | ||
{{ ($this->downloadAction)(['path' => $attachment['path'], 'name' => $attachment['name'] , 'type' => $attachment['contentType']]) }} | ||
</div> | ||
<?php $attachments = $getRecord()->attachments; ?> | ||
|
||
@if(!empty($attachments)) | ||
<div class="flex flex-wrap gap-8"> | ||
@foreach($attachments as $attachment) | ||
<div class="basis-1/4 me-3"> | ||
<div class="flex items-center space-x-6 rtl:space-x-reverse"> | ||
<div class="flex-initial min-w-0 pe-4"> | ||
<p class="text-sm font-medium text-gray-900 truncate dark:text-white"> | ||
<strong>{{ $attachment['name'] }}</strong> | ||
</p> | ||
</div> | ||
</li> | ||
@endforeach | ||
</ul> | ||
@endif | ||
</div> | ||
<div class="inline-flex items-center text-base font-semibold text-gray-900 dark:text-white"> | ||
{{ ($this->downloadAction)(['path' => $attachment['path'], 'name' => $attachment['name'] , 'type' => $attachment['contentType']]) }} | ||
</div> | ||
</div> | ||
</div> | ||
@endforeach | ||
</div> | ||
@endif | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.