diff --git a/app/Livewire/OrderShow.php b/app/Livewire/OrderShow.php index 5a0c846..3e397a4 100644 --- a/app/Livewire/OrderShow.php +++ b/app/Livewire/OrderShow.php @@ -16,6 +16,7 @@ class OrderShow extends Component public string $role; public string $search = ''; public string $show_filters = 'block'; + public bool $show_place_order_section = false; public function mount(): void { @@ -57,6 +58,11 @@ public function resetFilters(): void $this->show_filters == 'hidden' ? $this->show_filters = 'block' : $this->show_filters = 'hidden'; } + public function togglePlaceOrderSection(): void + { + $this->show_place_order_section = !$this->show_place_order_section; + } + public function render(): View { if ($this->role === 'writer') { diff --git a/app/Models/Payment.php b/app/Models/Payment.php index 69cf577..91c2c07 100644 --- a/app/Models/Payment.php +++ b/app/Models/Payment.php @@ -34,8 +34,8 @@ public function getStatusClass(): string public function getStatusDescription(): string { return match ($this->status) { - 'pending' => 'Payment is pending.', - 'completed' => 'Payment has been completed.', + 'pending' => 'Payment pending verification.', + 'completed' => 'Payment has been verified.', 'failed' => 'Payment has failed.', default => 'Payment status is unknown.', }; diff --git a/resources/views/orders/show.blade.php b/resources/views/orders/show.blade.php index b3a0613..27a3a54 100644 --- a/resources/views/orders/show.blade.php +++ b/resources/views/orders/show.blade.php @@ -10,33 +10,54 @@
-
-
-
-
-

+
+
+
+
+ Hide Section + +
+
+
+

+ Place an Order +

+

+ An order is a request for our professional services, which can include essay writing, + research papers, and more. + By placing an order, you ensure that your academic needs are met by our expert team. +

+
+
+

-

- An order is a request for our professional services, which can include essay writing, - research papers, and more. - By placing an order, you ensure that your academic needs are met by our expert team. -

+ +
-
- - Place an Order - - +

+ When you place an order, you provide us with detailed instructions about your requirements, + deadlines, and any additional materials. + Our team will match you with the best writer for your subject area to ensure high-quality, + plagiarism-free work. +

+
+ +
+
+ Show Section + +
+
+ +
+
+
-

- When you place an order, you provide us with detailed instructions about your requirements, - deadlines, and any additional materials. - Our team will match you with the best writer for your subject area to ensure high-quality, - plagiarism-free work. -

@@ -59,7 +80,7 @@ class="p-2 pl-8 border border-gray-300 rounded-md"
@@ -88,7 +109,7 @@ class="p-2 px-4 bg-gray-200 text-gray-700 font-semibold rounded-lg">
@else
-
+
@foreach(['title' => 'Name', 'description' => 'Description', 'total_price' => 'Total Price', 'status' => 'Status'] as $field => $label) @endforeach
- - Showing {{ $orders->firstItem() }} to {{ $orders->lastItem() }} out of {{ $orders->total() }} orders - +
+ Select a field to sort by alphabetically or numerically. +