Adnan Yalahow
Adnan Yalahow
FFilament
Created by Adnan Yalahow on 9/14/2024 in #❓┊help
Table columns
hi every one i would like to make my table to be grid for small devices and use the normal table when the screen is big is there any way i can achieve this using filament i need help please
18 replies
FFilament
Created by Adnan Yalahow on 9/5/2024 in #❓┊help
change collapse icon
No description
5 replies
FFilament
Created by Adnan Yalahow on 8/6/2024 in #❓┊help
Prevent old password as new password
I need help to tp prevent user entering the same old password as new password
8 replies
FFilament
Created by Adnan Yalahow on 7/17/2024 in #❓┊help
Get record ID after delete
can i get the deleted record id in ->after(function () { // ... })
5 replies
FFilament
Created by Adnan Yalahow on 7/13/2024 in #❓┊help
Hide action based on form change
I added an action button to my form for example Approve that changes some status, but in edit page when user makes change in the form he can forget to save changes and just click approve which will trigger the previous data so how can I hide the approve action button immediately after form changes are made?
4 replies
FFilament
Created by Adnan Yalahow on 7/7/2024 in #❓┊help
Can I export a repeater within a section using section header actions in filament
is this feature available in filament
2 replies
FFilament
Created by Adnan Yalahow on 7/4/2024 in #❓┊help
Change side bar background color
how can i change the background of the navigation menu
7 replies
FFilament
Created by Adnan Yalahow on 6/25/2024 in #❓┊help
make create and create buttons always display on form screen even when scrolling
It's quite boring to go all the way down to save changes while i only made change to my top input so is there any way filament to make these buttons fixed
15 replies
FFilament
Created by Adnan Yalahow on 6/9/2024 in #❓┊help
Form Action appearance
how do move all my buttons in the form Create, Save changes, Cancel to the top of the page globally
4 replies
FFilament
Created by Adnan Yalahow on 6/2/2024 in #❓┊help
Table Repeater Export
Is there anyway I can use filament export action in table repeater
3 replies
FFilament
Created by Adnan Yalahow on 5/14/2024 in #❓┊help
weird select option behavior on relationship
i have this select option
Forms\Components\Select::make('customer_id')
->label('Customer')->live(debounce: 300)
->required()->searchable()
->relationship('customer', ignoreRecord: true)
->getOptionLabelFromRecordUsing(function (Model $record) {
return $record['name'];
})
->options(function (Forms\Get $get) {
if ($get('related_to')) {
$data = [];
if ($get('related_to') === 'fcl job') {
$data = Customer::whereHas('fcl_expense', function ($query) {
$query->where('status', 'pending')->where('stage', 'approved');
})->get();
} elseif ($get('related_to') === 'lcl job') {
$data = Customer::whereHas('lcl_expense', function ($query) {
$query->where('status', 'pending')->where('stage', 'approved');
})->get();
} elseif ($get('related_to') === 'clearance') {
$data = Customer::whereHas('clearance_expense', function ($query) {
$query->where('status', 'pending')->where('stage', 'approved');
})->get();
}
return $data->pluck('name', 'id');
}
})
Forms\Components\Select::make('customer_id')
->label('Customer')->live(debounce: 300)
->required()->searchable()
->relationship('customer', ignoreRecord: true)
->getOptionLabelFromRecordUsing(function (Model $record) {
return $record['name'];
})
->options(function (Forms\Get $get) {
if ($get('related_to')) {
$data = [];
if ($get('related_to') === 'fcl job') {
$data = Customer::whereHas('fcl_expense', function ($query) {
$query->where('status', 'pending')->where('stage', 'approved');
})->get();
} elseif ($get('related_to') === 'lcl job') {
$data = Customer::whereHas('lcl_expense', function ($query) {
$query->where('status', 'pending')->where('stage', 'approved');
})->get();
} elseif ($get('related_to') === 'clearance') {
$data = Customer::whereHas('clearance_expense', function ($query) {
$query->where('status', 'pending')->where('stage', 'approved');
})->get();
}
return $data->pluck('name', 'id');
}
})
when am in create form no data is displayed in the select options and on edit the name of the customer can bee seen as label on the otherhand if I comment the relationship function the opposite happens in create the select option is ok but in edit i see the id and not the name I need help Please
17 replies
FFilament
Created by Adnan Yalahow on 5/12/2024 in #❓┊help
Can I create something like this in filament
No description
4 replies
FFilament
Created by Adnan Yalahow on 4/29/2024 in #❓┊help
relationship won't delete if repeater is empty when updating the form
I am trying to update my receipt form and there is repeater with relationship() that is only shown when receipt_to is customer but if I try to update with may be supplier and the repeater is empty and hidden in this case then in the relationship table there is still previous data for the customer and it should have removed. is there anyway I could handle this
2 replies
FFilament
Created by Adnan Yalahow on 4/28/2024 in #❓┊help
how can i add requiresConfirmation when creating records
i have trid this
protected function getCreateFormAction(): Action
{
return Action::make('create')
->action('create')
->requiresConfirmation();
}
protected function getCreateFormAction(): Action
{
return Action::make('create')
->action('create')
->requiresConfirmation();
}
but nothing seems to be working someone help me please
7 replies
FFilament
Created by Adnan Yalahow on 4/22/2024 in #❓┊help
can't assign role to customer
No description
11 replies
FFilament
Created by Adnan Yalahow on 3/31/2024 in #❓┊help
getSaveFormAction prevents data from updating record and its relationships
i want to hide or disable save changes button and do its own trigger action when not hidden or disabled this is what i did now
protected function getSaveFormAction(): Action
{
return Action::make('save_changes')
->disabled(function (Warehouse $record) {
$warehouse = app(Warehouse::class);
$linkedTransactions = $warehouse->checkLink($record['id']);
if (empty($linkedTransactions)) {
return false;
}
return true;
});
}
protected function getSaveFormAction(): Action
{
return Action::make('save_changes')
->disabled(function (Warehouse $record) {
$warehouse = app(Warehouse::class);
$linkedTransactions = $warehouse->checkLink($record['id']);
if (empty($linkedTransactions)) {
return false;
}
return true;
});
}
please help me find a solution
4 replies
FFilament
Created by Adnan Yalahow on 3/23/2024 in #❓┊help
move repeater actions inline with the components
No description
5 replies
FFilament
Created by Adnan Yalahow on 3/7/2024 in #❓┊help
image not loading but accessible via URL
No description
15 replies
FFilament
Created by Adnan Yalahow on 10/4/2023 in #❓┊help
Struggling to Populate Repeater with Data Based on Selected Item
No description
5 replies
FFilament
Created by Adnan Yalahow on 9/17/2023 in #❓┊help
Read data into repeater based on selected filed
No description
6 replies