diff --git a/database/factories/OrderAttachmentFactory.php b/database/factories/OrderAttachmentFactory.php new file mode 100644 index 0000000..6a5cb1c --- /dev/null +++ b/database/factories/OrderAttachmentFactory.php @@ -0,0 +1,22 @@ + $this->faker->numberBetween(1, 10), + 'name' => $this->faker->word, + 'path' => $this->faker->word, + 'type' => $this->faker->word, + 'size' => $this->faker->numberBetween(1, 10), + ]; + } +} diff --git a/resources/views/orders/verify-order-payment.blade.php b/resources/views/orders/verify-order-payment.blade.php index 5daec29..406f601 100644 --- a/resources/views/orders/verify-order-payment.blade.php +++ b/resources/views/orders/verify-order-payment.blade.php @@ -9,6 +9,93 @@
+ +
+
+
+

{{ $order->title }}

+

+ + {{ Str::limit($order->description, 120) }} +

+
+
+

Order Details:

+

Total Price

+
+ {{ $order->total_price }} +
+
+
+ +

Payment Information:

+ @if($order->payment) + + + + + + + + + + + + + + + + + + + + + + + +
Payment ID:{{ $order->payment->id }}
Payment Date:{{ $order->payment->created_at->format('M d, Y') }}
Payment Time:{{ $order->payment->created_at->format('h:i A') }}
Payment Status:{{ $order->payment->status }}

+
Payment Method:{{ $order->payment->payment_method }}
+ @else +

No payment information available

+ @endif +
+ @if($order->attachments->count() > 0) +

Attachments:

+
+ @foreach($order->attachments as $attachment) +
+ @if(in_array($attachment->type, ['image', 'image/png', 'video', 'png', 'jpg', 'jpeg', 'gif'])) +
+
+ {{ $attachment->name }} +
+
+ @if($attachment->type === 'image' || in_array($attachment->type, ['png', 'image/png', 'jpg', 'jpeg', 'gif'])) + {{ $attachment->name }} + @elseif($attachment->type === 'video') + + @endif +
+
+ @else +
+ + {{ $attachment->name }} + {{ $attachment->type }} + +
+ @endif +
+ @endforeach +
+ @else +

No attachments for this order

+ @endif +