diff --git a/app/Livewire/UserShow.php b/app/Livewire/UserShow.php index 6dd8afa..0e82931 100644 --- a/app/Livewire/UserShow.php +++ b/app/Livewire/UserShow.php @@ -2,11 +2,19 @@ namespace App\Livewire; +use App\Models\User; +use Illuminate\View\View; use Livewire\Component; class UserShow extends Component { - public function render() + public User $user; + public function mount(User $user): void + { + $this->user = $user; + } + + public function render(): View { return view('livewire.user-show'); } diff --git a/public/images/bg/1.jpg b/public/images/bg/1.jpg new file mode 100644 index 0000000..d7f05e8 Binary files /dev/null and b/public/images/bg/1.jpg differ diff --git a/public/images/bg/2.jpg b/public/images/bg/2.jpg new file mode 100644 index 0000000..19c4be4 Binary files /dev/null and b/public/images/bg/2.jpg differ diff --git a/public/images/bg/3.jpg b/public/images/bg/3.jpg new file mode 100644 index 0000000..581529e Binary files /dev/null and b/public/images/bg/3.jpg differ diff --git a/public/images/bg/4.jpg b/public/images/bg/4.jpg new file mode 100644 index 0000000..391ebb3 Binary files /dev/null and b/public/images/bg/4.jpg differ diff --git a/resources/views/livewire/user-show.blade.php b/resources/views/livewire/user-show.blade.php index 605a3b5..5d5c052 100644 --- a/resources/views/livewire/user-show.blade.php +++ b/resources/views/livewire/user-show.blade.php @@ -1,3 +1,83 @@ -
{{ $user->age }} - {{ $user->location }}
+{{ $order->created_at->diffForHumans() }}
+{{ $order->description }}
+