From b4168944ee638aa582b061e1e3f2a27855ac8eeb Mon Sep 17 00:00:00 2001 From: raccoon254 Date: Sat, 22 Jun 2024 14:37:25 +0300 Subject: [PATCH] Add logo image to the UI --- .../components/application-logo.blade.php | 6 +- resources/views/orders/view.blade.php | 158 ++++++++++-------- 2 files changed, 87 insertions(+), 77 deletions(-) diff --git a/resources/views/components/application-logo.blade.php b/resources/views/components/application-logo.blade.php index c225ab3..6fb5437 100644 --- a/resources/views/components/application-logo.blade.php +++ b/resources/views/components/application-logo.blade.php @@ -1,3 +1,3 @@ - - - +
+ ScholarSpace Logo +
diff --git a/resources/views/orders/view.blade.php b/resources/views/orders/view.blade.php index 041d56e..7028dc2 100644 --- a/resources/views/orders/view.blade.php +++ b/resources/views/orders/view.blade.php @@ -13,30 +13,32 @@

Order Details

-
- -

Order Information

-
-
-
- - Title: {{ $order->title }} -
-
- - Description: {{ $order->description }} -
-
- - Status: - {{ ucfirst($order->status) }} -
-
- - Total Price: ${{ number_format($order->total_price, 2) }} -
-
-
+
+ +

Order Information

+
+
+
+ + Title: {{ $order->title }} +
+
+ + Description: {{ $order->description }} +
+
+ + Status: + {{ ucfirst($order->status) }} +
+
+ + Total Price: + ${{ number_format($order->total_price, 2) }} +
+
+

Attachments

@if ($order->attachments->isNotEmpty()) @@ -47,7 +49,9 @@
+ rounded-xl ring-1 ring-blue-100 ring-opacity-40 cursor-pointer overflow-hidden relative" + data-type="{{ $attachment->type }}" + data-path="{{ Storage::url($attachment->path) }}"> @if (in_array($attachment->type, ['image/jpeg', 'image/png', 'image/gif'])) - Amount Paid: ${{ number_format($order->payment->amount, 2) }} + Amount Paid: + ${{ number_format($order->payment->amount, 2) }}
- Payment Method: {{ ucfirst($order->payment->payment_method) }} + Payment Method: {{ ucfirst($order->payment->payment_method) }}
Payment Status: - {{ ucfirst($order->payment->status) }} + {{ ucfirst($order->payment->status) }}
@else
@@ -128,7 +135,8 @@ class="absolute top-0 btn btn-xs btn-circle btn-ghost bg-blue-500 right-0 mt-1 m @if ($order->delivery->isNotEmpty())
    @foreach ($order->delivery as $delivery) -
    {{ Str::ucfirst($delivery->status) }}
    +
    {{ Str::ucfirst($delivery->status) }}
    {{ Str::limit($delivery->description, 100)}}
    @@ -140,53 +148,55 @@ class="absolute top-0 btn btn-xs btn-circle btn-ghost bg-blue-500 right-0 mt-1 m
      -
      - @foreach($delivery->attachments as $attachment) -
      -
      + @foreach($delivery->attachments as $attachment) +
      +
      - @if (in_array($attachment->type, ['image/jpeg', 'image/png', 'image/gif'])) - Attachment - @elseif ($attachment->type == 'application/pdf') -
      - -
      - @elseif ($attachment->type == 'application/zip' || $attachment->type == 'application/x-rar-compressed') -
      - -
      - @elseif (str_starts_with($attachment->type, 'video/')) -
      - -
      - @elseif (str_starts_with($attachment->type, 'audio/')) -
      - -
      - @else -
      - -
      - @endif - - - + rounded-xl ring-1 ring-blue-100 ring-opacity-40 cursor-pointer overflow-hidden relative" + data-type="{{ $attachment->type }}" + data-path="{{ Storage::url($attachment->path) }}"> + @if (in_array($attachment->type, ['image/jpeg', 'image/png', 'image/gif'])) + Attachment + @elseif ($attachment->type == 'application/pdf') +
      + +
      + @elseif ($attachment->type == 'application/zip' || $attachment->type == 'application/x-rar-compressed') +
      + +
      + @elseif (str_starts_with($attachment->type, 'video/')) +
      + +
      + @elseif (str_starts_with($attachment->type, 'audio/')) +
      + +
      + @else +
      + +
      + @endif + + + +
      -
      - @endforeach -
      -
    + @endforeach +
+ @else