Skip to content

Commit

Permalink
Show user livewire component create
Browse files Browse the repository at this point in the history
  • Loading branch information
Raccoon254 committed Jun 24, 2024
1 parent a4ad8de commit 03146c7
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
13 changes: 13 additions & 0 deletions app/Livewire/UserShow.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace App\Livewire;

use Livewire\Component;

class UserShow extends Component
{
public function render()
{
return view('livewire.user-show');
}
}
3 changes: 3 additions & 0 deletions resources/views/livewire/user-edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
<div class="max-w-7xl relative h-full mx-auto">
<div class="flex gap-4 sm:mx-3 lg:mx-4 flex-col h-full md:flex-row">
<div class="bg-white p-6 relative md:w-2/3 rounded-lg shadow-sm">

<h1 class="text-2xl font-semibold mb-4 text-gray-800">Edit User</h1>

@if (session()->has('message'))
<div class="bg-green-100 mb-4 border border-green-400 text-green-700 px-4 py-3 rounded relative"
role="alert">
Expand Down
3 changes: 3 additions & 0 deletions resources/views/livewire/user-show.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div>
{{-- The Master doesn't talk, he acts. --}}
</div>
3 changes: 2 additions & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use App\Livewire\OrderShow;
use App\Livewire\Referrals;
use App\Livewire\UserEdit;
use App\Livewire\UserShow;
use App\Livewire\VerifyOrderPayment;
use App\Livewire\VerifyPayments;
use Illuminate\Support\Facades\Route;
Expand Down Expand Up @@ -46,7 +47,7 @@

Route::get('/payments', VerifyPayments::class)->name('payments.index');
Route::get('/users', ManageUsers::class)->name('users.index')->middleware('can:manage');
Route::get('/users/{user}', [ManageUsers::class, 'show'])->name('users.show')->middleware('can:manage');
Route::get('/users/{user}', UserShow::class)->name('users.show')->middleware('can:manage');
Route::get('/users/edit/{id}', UserEdit::class)->name('users.edit')->middleware('can:manage');

Route::get('/payments/{paymentId}', VerifyOrderPayment::class)->name('payments.show')->middleware('can:manage');
Expand Down

0 comments on commit 03146c7

Please sign in to comment.