Neamix
Neamix
Explore posts from servers
NNuxt
Created by Neamix on 1/25/2025 in #❓・help
Navigation Active class
@kapa.ai my routes started with /dashboard/reservations
8 replies
NNuxt
Created by Ųŋĸńōŵņ on 8/5/2024 in #❓・help
Nuxt 3 directive and updating component data
did u manage to solve this ?
2 replies
NNuxt
Created by Neamix on 10/19/2024 in #❓・help
Cant access pinia from component
it was a silly mistake i foret to add setup on script so nuxt rendered it before pinia
2 replies
FFilament
Created by Neamix on 10/12/2024 in #❓┊help
PanalsRenderHook doesnt acce[t @script tag
and this is the log error
13 replies
FFilament
Created by Neamix on 10/12/2024 in #❓┊help
PanalsRenderHook doesnt acce[t @script tag
D:\Projects\Refk Project\RefkApi\storage\framework\views\4943bc92ebba41e8b0e508149542e0ad.blade
.php

: 16
require
D:\Projects\Refk Project\RefkApi\storage\framework\views\4943bc92ebba41e8b0e508149542e0ad.blade
.php

: 16
require
13 replies
FFilament
Created by Neamix on 10/12/2024 in #❓┊help
PanalsRenderHook doesnt acce[t @script tag
D:\Projects\Refk Project\RefkApi\resources\views\livewire\message-center.blade
.php

: 57
require
D:\Projects\Refk Project\RefkApi\resources\views\livewire\message-center.blade
.php

: 57
require
13 replies
FFilament
Created by Neamix on 10/12/2024 in #❓┊help
PanalsRenderHook doesnt acce[t @script tag
yea of course
13 replies
FFilament
Created by Neamix on 10/12/2024 in #❓┊help
PanalsRenderHook doesnt acce[t @script tag
MessageCenter Class
class MessageCenter extends Component
{
public $message;
public $rand;

#[On('MessegeReceive')]
public function messages()
{
dd('dasd');
}


public function render()
{
$chatrooms = Auth::user()->chatrooms()
->with(['messages' => function ($query) {
$query->latest();
}])
->whereHas('reservation',function ($query) {
$query->where('answered',0);
})
->withCount(['messages as last_message_time' => function($query) {
$query->select(DB::raw('MAX(created_at)'));

}])
->orderByDesc('last_message_time')
->get();
// dd($chatrooms);
return view('livewire.message-center',[
'chatrooms' => $chatrooms
]);
}
}
class MessageCenter extends Component
{
public $message;
public $rand;

#[On('MessegeReceive')]
public function messages()
{
dd('dasd');
}


public function render()
{
$chatrooms = Auth::user()->chatrooms()
->with(['messages' => function ($query) {
$query->latest();
}])
->whereHas('reservation',function ($query) {
$query->where('answered',0);
})
->withCount(['messages as last_message_time' => function($query) {
$query->select(DB::raw('MAX(created_at)'));

}])
->orderByDesc('last_message_time')
->get();
// dd($chatrooms);
return view('livewire.message-center',[
'chatrooms' => $chatrooms
]);
}
}
13 replies
FFilament
Created by Neamix on 10/12/2024 in #❓┊help
PanalsRenderHook doesnt acce[t @script tag
The AppServiceProvider
13 replies
FFilament
Created by Neamix on 10/12/2024 in #❓┊help
PanalsRenderHook doesnt acce[t @script tag
Blade
13 replies
FFilament
Created by Neamix on 10/6/2024 in #❓┊help
Notification broadcast
Well i had to uncomment echo from bootstrap.js
3 replies
FFilament
Created by Neamix on 9/28/2024 in #❓┊help
Select default value from select dropdown
in that edit action i have the select
7 replies
FFilament
Created by Neamix on 9/28/2024 in #❓┊help
Select default value from select dropdown
yes , i have a custom page called members and it have edit action
7 replies
FFilament
Created by Neamix on 9/24/2024 in #❓┊help
Add script to a page
use Filament\Support\Facades\FilamentView; use Filament\View\PanelsRenderHook; use Illuminate\Support\Facades\Blade; FilamentView::registerRenderHook( PanelsRenderHook::PAGE_START, fn (): View => view('warning-banner'), scopes: \App\Filament\Resources\UserResource\Pages\EditUser::class, );
4 replies
FFilament
Created by Neamix on 9/14/2024 in #❓┊help
Pass params to a custom page
this worked for me
12 replies
FFilament
Created by Neamix on 9/14/2024 in #❓┊help
Pass params to a custom page
no its same question what i want to say i tried that solution and yea i have a page with a route params and that what i want but i am using primary color #51B78F but at this page it changed to the default Color::Orange of fiament
12 replies
FFilament
Created by Neamix on 9/14/2024 in #❓┊help
Pass params to a custom page
yes it has a modal but its not a resource as it wont fit the app logic
12 replies
FFilament
Created by Neamix on 9/14/2024 in #❓┊help
Pass params to a custom page
I tried that but i found that the theme color that i choose has been return to default orange instead the one that i am using in panal
Route::get('admin/chatroom/{room_id}',ChatroomPage::class);

<?php

namespace App\Filament\Pages;

use App\Models\Chatroom;
use Filament\Pages\Page;

class ChatroomPage extends Page
{
protected static ?string $navigationIcon = 'heroicon-o-document-text';

protected static string $view = 'filament.pages.chatroom-page';

public static function shouldRegisterNavigation(): bool
{
return false;
}

public function mount()
{
$chatroom = Chatroom::find(request()->room_id);
}
}
Route::get('admin/chatroom/{room_id}',ChatroomPage::class);

<?php

namespace App\Filament\Pages;

use App\Models\Chatroom;
use Filament\Pages\Page;

class ChatroomPage extends Page
{
protected static ?string $navigationIcon = 'heroicon-o-document-text';

protected static string $view = 'filament.pages.chatroom-page';

public static function shouldRegisterNavigation(): bool
{
return false;
}

public function mount()
{
$chatroom = Chatroom::find(request()->room_id);
}
}
12 replies
FFilament
Created by Neamix on 9/7/2024 in #❓┊help
Filament Page
thx for support
19 replies
FFilament
Created by Neamix on 9/7/2024 in #❓┊help
Filament Page
@awcodes the user just enter the role and email and then send invitation so the only action is sending
19 replies