From cf3e50dfb8f6269b2de9fe45ea909470bf786a50 Mon Sep 17 00:00:00 2001 From: raccoon254 Date: Sat, 15 Jun 2024 14:50:53 +0300 Subject: [PATCH] Better order attachments structure --- .../orders/verify-order-payment.blade.php | 27 ++++++++++++------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/resources/views/orders/verify-order-payment.blade.php b/resources/views/orders/verify-order-payment.blade.php index 0cbbbde..0838669 100644 --- a/resources/views/orders/verify-order-payment.blade.php +++ b/resources/views/orders/verify-order-payment.blade.php @@ -67,28 +67,35 @@ class="{{ $order->payment->getStatusClass() }} p-2 rounded-md text-white">{{ $or
@foreach($order->attachments as $attachment)
- @if(in_array($attachment->type, ['image', 'image/png', 'video', 'png', 'jpg', 'jpeg', 'gif'])) + @if(in_array($attachment->type, ['image/jpeg', 'image/png', 'image/gif']))
-
- {{ $attachment->name }} +
+ {{ Str::limit($attachment->name, 20)}}
-
- @if($attachment->type === 'image' || in_array($attachment->type, ['png', 'image/png', 'jpg', 'jpeg', 'gif'])) +
+ @if($attachment->type === 'image' || in_array($attachment->type, ['image/png', 'image/png', 'image/jpg', 'image/jpeg', 'image/gif'])) {{ $attachment->name }} @elseif($attachment->type === 'video') - + @endif
@else +
- + +
+
+ + + +
+
@endif