Chanda
Chanda
FFilament
Created by Chanda on 12/7/2023 in #❓┊help
form-field
@Lara Zeus Still not working as expected, its showing the full file path instaed: LOAN_AGREEMENT_FORMS/2023/DOCX/MyWLZ0ng3gWTjalQr205ikyb6BGCjnWvTRQtugPj.docx
7 replies
FFilament
Created by Chanda on 12/7/2023 in #❓┊help
form-field
@MyFrend Just a normal href tag we know, suppose my file path under loan_agreement_file_path is 'original_document_name.pdf' then in my table list I will put this file name which has been retrieved in the href i.e <a href="original_document_name.pdf" >Form</a> and in the table list only the 'Form' text will appear and when clicked will lead to that download/view of that file.
7 replies
FFilament
Created by Chanda on 11/25/2023 in #❓┊help
Adding Custom Page in Navigation
@Tieme Thanks worked!!! Missed out that in the Docs😄
4 replies
FFilament
Created by Chanda on 11/24/2023 in #❓┊help
Listing records from a custom page:
<?php
namespace App\Filament\Resources\LoanResource\Pages;

use App\Filament\Resources\LoanResource;
use App\Models\Loan;
use Filament\Resources\Pages\Page;

class ActiveLoans extends Page
{
protected static string $resource = LoanResource::class;

protected static string $view = 'filament.resources.loan-resource.pages.active-loans';

public function getViewData(): array
{
$data = Loan::get()->toArray();
return ['data' => $data];
}
}
<?php
namespace App\Filament\Resources\LoanResource\Pages;

use App\Filament\Resources\LoanResource;
use App\Models\Loan;
use Filament\Resources\Pages\Page;

class ActiveLoans extends Page
{
protected static string $resource = LoanResource::class;

protected static string $view = 'filament.resources.loan-resource.pages.active-loans';

public function getViewData(): array
{
$data = Loan::get()->toArray();
return ['data' => $data];
}
}
8 replies
FFilament
Created by Chanda on 11/24/2023 in #❓┊help
Listing records from a custom page:
@Bogardo you are right I wasn't passing the view to the blade file: this is how It was supposed to be:
8 replies
FFilament
Created by Chanda on 11/24/2023 in #❓┊help
Listing records from a custom page:
@Bogardo tried I don't know why its saying Undefined variable $data
8 replies