gladjanus43
gladjanus43
FFilament
Created by gladjanus43 on 12/10/2024 in #❓┊help
ImportAction filling relational data from multiple columns
No description
4 replies
FFilament
Created by terumi on 12/5/2024 in #❓┊help
Guest pages using the filament layout.
You can create a livewire component, and return that component from a route to get a full page component:
Route::get(
'/transport',
CreateTransportOrderForm::class
)
->middleware('web')
->name('transport-order.create');
Route::get(
'/transport',
CreateTransportOrderForm::class
)
->middleware('web')
->name('transport-order.create');
Then in that livewire component:
class CreateTransportOrderForm extends Component implements HasForms
{

#[Layout('components.layouts.guest')]
public function render(): View
{
return view('tms::livewire.create-transport-order-form');
}

}
class CreateTransportOrderForm extends Component implements HasForms
{

#[Layout('components.layouts.guest')]
public function render(): View
{
return view('tms::livewire.create-transport-order-form');
}

}
Then the last thing you need to do is create a public layout inside views/components/layouts called guest.blade.php
<!DOCTYPE html>
<html
lang="{{ str_replace('_', '-', app()->getLocale()) }}"
class="fi min-h-screen"
>

<head>
<meta charset="utf-8">
<meta
name="viewport"
content="width=device-width, initial-scale=1"
>
<meta
name="csrf-token"
content="{{ csrf_token() }}"
>

<title>{{ config('app.name', 'Laravel') }}</title>


<!-- Scripts -->
@vite(['resources/css/app.css', 'resources/js/app.js'])

<!-- Styles -->
@livewireStyles
@filamentStyles
</head>

<body>
<div class="min-h-screen bg-gray-100 dark:bg-gray-900">
<div class="text-gray-900 dark:text-gray-100 antialiased font-sans h-screen">
{{ $slot }}
</div>
</div>

@livewireScripts
@filamentScripts
</body>

</html>
<!DOCTYPE html>
<html
lang="{{ str_replace('_', '-', app()->getLocale()) }}"
class="fi min-h-screen"
>

<head>
<meta charset="utf-8">
<meta
name="viewport"
content="width=device-width, initial-scale=1"
>
<meta
name="csrf-token"
content="{{ csrf_token() }}"
>

<title>{{ config('app.name', 'Laravel') }}</title>


<!-- Scripts -->
@vite(['resources/css/app.css', 'resources/js/app.js'])

<!-- Styles -->
@livewireStyles
@filamentStyles
</head>

<body>
<div class="min-h-screen bg-gray-100 dark:bg-gray-900">
<div class="text-gray-900 dark:text-gray-100 antialiased font-sans h-screen">
{{ $slot }}
</div>
</div>

@livewireScripts
@filamentScripts
</body>

</html>
7 replies
FFilament
Created by gladjanus43 on 12/5/2024 in #❓┊help
Dynamically set ->options() in Radio Input from API
Figured it out. I made my own plugin for radio inputs. It had the wire:ignore attribute on it for the custom alpine class. I changed it to wire:ignore.self and it worked.
6 replies
FFilament
Created by toeknee on 11/28/2024 in #❓┊help
Widget Charts action points to filter table?
https://laraveldaily.com/post/filament-click-widget-auto-update-table-filter here it is, just needed to update to dispatch because it was written for v2
9 replies
FFilament
Created by toeknee on 11/28/2024 in #❓┊help
Widget Charts action points to filter table?
Let me know, i am curious!
9 replies
FFilament
Created by toeknee on 11/28/2024 in #❓┊help
Widget Charts action points to filter table?
Jeah I found it somewhere online allready! Let me check if I can find it. Think it was from filament-daily or something
9 replies
FFilament
Created by terumi on 12/5/2024 in #❓┊help
Guest pages using the filament layout.
Now I have a route which is public accessible
7 replies
FFilament
Created by terumi on 12/5/2024 in #❓┊help
Guest pages using the filament layout.
Hi, I have a working Full Page livewire component. This works with the styles from Filament https://github.com/filamentphp/filament/discussions/7819 I followed what myregistration posted! Hope it helps
7 replies
FFilament
Created by gladjanus43 on 12/5/2024 in #❓┊help
Dynamically set ->options() in Radio Input from API
No description
6 replies
FFilament
Created by toeknee on 11/28/2024 in #❓┊help
Widget Charts action points to filter table?
Sorry! Did you figure it out? in the ListPage of your resource you can add
#[On('updateStatusFilter')]
public function updateFilters(string $status, string $filter): void
{
// dd($this->tableFilters);
$this->tableFilters[$filter]['value'] = $status;
$this->updatedTableFilters();
}
#[On('updateStatusFilter')]
public function updateFilters(string $status, string $filter): void
{
// dd($this->tableFilters);
$this->tableFilters[$filter]['value'] = $status;
$this->updatedTableFilters();
}
Then in your widget:
Stat::make('Shifts in draft', Shift::where('status', ShiftStatus::DRAFT)->count())
->extraAttributes([
'class' => 'cursor-pointer',
'wire:click' => "\$dispatch('updateStatusFilter', { status: 'DRAFT', filter: 'status'})",
]),
Stat::make('Shifts in draft', Shift::where('status', ShiftStatus::DRAFT)->count())
->extraAttributes([
'class' => 'cursor-pointer',
'wire:click' => "\$dispatch('updateStatusFilter', { status: 'DRAFT', filter: 'status'})",
]),
9 replies
FFilament
Created by gladjanus43 on 12/5/2024 in #❓┊help
Dynamically set ->options() in Radio Input from API
For testing purposes I removed the afterState call and am calling the api via the hint action. The end goal is to use my own RadioCard plugin instead of Radio input. The weird thing is that inside my radioCard plugin it does throw the options. It just does not render the fields. Does anybody have any clues where the issue lies? Or what other solutions can I try? Thanks in advance!
6 replies
FFilament
Created by toeknee on 11/28/2024 in #❓┊help
Widget Charts action points to filter table?
not in a chart, i did with a stats widget though but dont know how different they are 😅
9 replies
FFilament
Created by gladjanus43 on 10/23/2024 in #❓┊help
Issue with relationmanager on complicated relation (bug?)
anybody who has some ideas? Can this be a bug? Or should I just implement a custom action with the $livewire->mountedTableAction variable
3 replies
FFilament
Created by Harvey on 10/23/2024 in #❓┊help
How to import Alpine in custom script
maybe php artisan filament:assets?
10 replies
FFilament
Created by gladjanus43 on 9/11/2024 in #❓┊help
BulkAction modal width not changeable
Solved it myself: for anyone running into this issue. I made the mistake of also having ->requiresConfirmation() dumb...
4 replies
FFilament
Created by gladjanus43 on 8/15/2024 in #❓┊help
Action is not called when first clicked on modal with modalContent()
Apperantly it does have to do with the requiresConfirmation... Dont know what I did last time. But I would like to have the user confirm their action. Any ideas why it is not mounting the modal of the confirmation?
14 replies
FFilament
Created by gladjanus43 on 8/15/2024 in #❓┊help
Action is not called when first clicked on modal with modalContent()
Some other ideas that someone has? Really stuck on this one…
14 replies
FFilament
Created by gladjanus43 on 8/15/2024 in #❓┊help
Action is not called when first clicked on modal with modalContent()
tried looking into the livewire returned object but could not really get any wiser 🥲
14 replies
FFilament
Created by gladjanus43 on 8/15/2024 in #❓┊help
Action is not called when first clicked on modal with modalContent()
thought so to, but if I disable it, still needs 2 clicks
14 replies
FFilament
Created by gladjanus43 on 8/15/2024 in #❓┊help
Action is not called when first clicked on modal with modalContent()
weird thing is, when I add the mountUsing method to one of the actions inside the custom livewire table it does instanlty execute the method. this is the header action of the invite button. It does dd the value the first time clicked so I would assume it is mounted, it is just not executed
Action::make('invite')
->action(fn() => ShiftService::inviteUsersForShift($this->shift))
->mountUsing(function () {
dd('test');
})
->requiresConfirmation()
Action::make('invite')
->action(fn() => ShiftService::inviteUsersForShift($this->shift))
->mountUsing(function () {
dd('test');
})
->requiresConfirmation()
14 replies