Vhelkhana
Vhelkhana
FFilament
Created by Vhelkhana on 6/4/2024 in #❓┊help
How do I make the minDate be the value of another field?
How do I make the minDate of date_of_payment, expected_release, and date_received be whatever the value of date_requested?
Section::make('Request information')
->schema([
Grid::make([
'sm' => 2,
'lg' => 3,
])
->schema([
TextInput::make('receipt_no')
->required(),
TextInput::make('purpose')
->required(),
TextInput::make('registrar_name'),
DatePicker::make('date_requested')
->maxDate(now())
->required(),
DatePicker::make('date_of_payment')
->required(),
DatePicker::make('expected_release')
->required(),
DatePicker::make('date_received'),
]),
]),
Section::make('Request information')
->schema([
Grid::make([
'sm' => 2,
'lg' => 3,
])
->schema([
TextInput::make('receipt_no')
->required(),
TextInput::make('purpose')
->required(),
TextInput::make('registrar_name'),
DatePicker::make('date_requested')
->maxDate(now())
->required(),
DatePicker::make('date_of_payment')
->required(),
DatePicker::make('expected_release')
->required(),
DatePicker::make('date_received'),
]),
]),
5 replies
FFilament
Created by Vhelkhana on 5/21/2024 in #❓┊help
Filament with Livewire, sort and search not working
Blade file:
<div class="relative overflow-x-auto">
{{ $this->table->render() }}
</div>
<div class="relative overflow-x-auto">
{{ $this->table->render() }}
</div>
@filamentStyles

<x-app-layout>
<!-- Header -->
<x-header title="Credential Generation" />
<div x-data="{ activeTab: 'student-portal-account'}">
<x-tab-navigation tab1Title="Student Portal Account" tab2Title="PLM Email" />
<!-- Student Portal Account Tab -->
<div x-show="activeTab === 'student-portal-account'">
<section class="p-4 rounded-lg" role="tabpanel" aria-labelledby="student-portal-account-tab">
<!-- Buttons Container -->
<div class="flex items-center justify-between mb-4">
<x-email-all-button callback="handleEmailAll" button-text="Email all" />
<x-edit-email-template-button modal-id="sp-account-modal"
modal-title="Student Portal Account Email Template" />
</div>
<!-- Pending Credentials Table -->
<livewire:list-pending-email-student-portal />
</section>
</div>
<!-- PLM Email Tab -->
<div x-show="activeTab === 'plm-email'">
<section class="p-4 rounded-lg" role="tabpanel" aria-labelledby="plm-email-tab">
<!-- Buttons Container -->
<div class="flex items-center justify-between mb-4">
<x-email-all-button callback="handleEmailAll" button-text="Email all" />
<x-edit-email-template-button modal-id="plm-email-modal"
modal-title="PLM Email Credentials Email Template" />
</div>
<!-- Pending Credentials Table -->
<livewire:list-pending-email-p-l-m-email />
</section>
</div>
</div>
</x-app-layout>

@vite('resources/js/credential-generation-dashboard.js')
@filamentStyles

<x-app-layout>
<!-- Header -->
<x-header title="Credential Generation" />
<div x-data="{ activeTab: 'student-portal-account'}">
<x-tab-navigation tab1Title="Student Portal Account" tab2Title="PLM Email" />
<!-- Student Portal Account Tab -->
<div x-show="activeTab === 'student-portal-account'">
<section class="p-4 rounded-lg" role="tabpanel" aria-labelledby="student-portal-account-tab">
<!-- Buttons Container -->
<div class="flex items-center justify-between mb-4">
<x-email-all-button callback="handleEmailAll" button-text="Email all" />
<x-edit-email-template-button modal-id="sp-account-modal"
modal-title="Student Portal Account Email Template" />
</div>
<!-- Pending Credentials Table -->
<livewire:list-pending-email-student-portal />
</section>
</div>
<!-- PLM Email Tab -->
<div x-show="activeTab === 'plm-email'">
<section class="p-4 rounded-lg" role="tabpanel" aria-labelledby="plm-email-tab">
<!-- Buttons Container -->
<div class="flex items-center justify-between mb-4">
<x-email-all-button callback="handleEmailAll" button-text="Email all" />
<x-edit-email-template-button modal-id="plm-email-modal"
modal-title="PLM Email Credentials Email Template" />
</div>
<!-- Pending Credentials Table -->
<livewire:list-pending-email-p-l-m-email />
</section>
</div>
</div>
</x-app-layout>

@vite('resources/js/credential-generation-dashboard.js')
More code in the replies
3 replies
FFilament
Created by Vhelkhana on 5/20/2024 in #❓┊help
Clicking Button Does Nothing
In my Credential Generation page, I have a table that lists all students who haven't been emailed their student credentials yet. In the same page, I have a button labeled "Email all" that when clicked, emails all students in the table their username and password on their personal emails. But when I click the "Email all" button, nothing happens. Why is that?
8 replies
FFilament
Created by Vhelkhana on 5/9/2024 in #❓┊help
->sortable(), searchable(), and pagination not working with Livewire
Adding ->sortable() and searchable() in columns adds the sort icon and the search bar but clicking the sort icon does nothing and searching columns doesn't work. I can also see the pagination for the tables but I clicking next page does nothing. I tried adding ->paginated() but it didn't work. resources/views/livewire/list-pending-email-student-portal.blade.php:
<div class="relative overflow-x-auto">
{{ $this->table->render() }}
</div>
<div class="relative overflow-x-auto">
{{ $this->table->render() }}
</div>
4 replies
FFilament
Created by Vhelkhana on 5/9/2024 in #❓┊help
Column relationships dot syntax not working
No description
6 replies