Skip to content

Commit

Permalink
Patient view update ✨✨
Browse files Browse the repository at this point in the history
  • Loading branch information
end3r-man committed Nov 19, 2023
1 parent 9f0ff06 commit 2f43f81
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions app/Filament/Resources/PatientViewResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use Filament\Forms\Form;
use Filament\Resources\Resource;
use Filament\Tables;
use Filament\Tables\Columns\ImageColumn;
use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Table;
use Illuminate\Database\Eloquent\Builder;
Expand Down Expand Up @@ -52,7 +53,6 @@ public static function form(Form $form): Form
->label('Notes')
->required(),
FileUpload::make('img')
->image()
->imageEditor()
->label('Image')
->directory('/patiet')
Expand All @@ -65,12 +65,22 @@ public static function table(Table $table): Table
{
return $table
->columns([
ImageColumn::make('img')
->circular()
->label('Image'),
TextColumn::make('name')
->searchable(),
->searchable()
->label('Name'),
TextColumn::make('blood')
->label('Blood Tyoe'),
TextColumn::make('dob')
->date('d M Y'),
TextColumn::make('blood_type'),
TextColumn::make('description'),
->date('d M Y')
->label('Date Of Birth'),
TextColumn::make('desc')
->label('Notes'),
TextColumn::make('updated_at')
->date('d M Y')
->label('Visited At')
])
->filters([
//
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2f43f81

Please sign in to comment.