wok
This commit is contained in:
@@ -36,17 +36,17 @@ class LoanOrderMobileResource extends Resource
|
|||||||
|
|
||||||
public static function getNavigationLabel(): string
|
public static function getNavigationLabel(): string
|
||||||
{
|
{
|
||||||
return __('Mobile loan order');
|
return __('Loan orders').' (mobile app)';
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getModelLabel(): string
|
public static function getModelLabel(): string
|
||||||
{
|
{
|
||||||
return __('Mobile loan order');
|
return __('module.loan-order::loan-order.loan_order'). ' (mobile app)';
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getPluralModelLabel(): string
|
public static function getPluralModelLabel(): string
|
||||||
{
|
{
|
||||||
return __('Mobile loan orders');
|
return __('module.loan-order::loan-order.loan_orders').' (mobile app)';
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function form(Schema $schema): Schema
|
public static function form(Schema $schema): Schema
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ use Filament\Actions\DeleteBulkAction;
|
|||||||
use Filament\Actions\EditAction;
|
use Filament\Actions\EditAction;
|
||||||
use Filament\Actions\ForceDeleteBulkAction;
|
use Filament\Actions\ForceDeleteBulkAction;
|
||||||
use Filament\Actions\RestoreBulkAction;
|
use Filament\Actions\RestoreBulkAction;
|
||||||
|
use Filament\Tables\Columns\TextColumn;
|
||||||
use Filament\Tables\Filters\TrashedFilter;
|
use Filament\Tables\Filters\TrashedFilter;
|
||||||
use Filament\Tables\Table;
|
use Filament\Tables\Table;
|
||||||
|
|
||||||
@@ -16,7 +17,61 @@ class LoanOrderMobilesTable
|
|||||||
{
|
{
|
||||||
return $table
|
return $table
|
||||||
->columns([
|
->columns([
|
||||||
//
|
TextColumn::make('id')
|
||||||
|
->label('ID')
|
||||||
|
->sortable(),
|
||||||
|
|
||||||
|
TextColumn::make('loanType.name')
|
||||||
|
->label(__('Loan type'))
|
||||||
|
->sortable()
|
||||||
|
->searchable(),
|
||||||
|
|
||||||
|
TextColumn::make('region')
|
||||||
|
->label(__('Region'))
|
||||||
|
->sortable()
|
||||||
|
->searchable(),
|
||||||
|
|
||||||
|
TextColumn::make('branch.name')
|
||||||
|
->label(__('Branch'))
|
||||||
|
->sortable()
|
||||||
|
->searchable(),
|
||||||
|
|
||||||
|
TextColumn::make('customer_name')
|
||||||
|
->label(__('Name'))
|
||||||
|
->sortable()
|
||||||
|
->searchable(),
|
||||||
|
|
||||||
|
TextColumn::make('customer_surname')
|
||||||
|
->label(__('Surname'))
|
||||||
|
->sortable()
|
||||||
|
->searchable(),
|
||||||
|
|
||||||
|
TextColumn::make('phone')
|
||||||
|
->label(__('Phone'))
|
||||||
|
->searchable(),
|
||||||
|
|
||||||
|
TextColumn::make('status')
|
||||||
|
->label(__('Status'))
|
||||||
|
->sortable()
|
||||||
|
->searchable(),
|
||||||
|
|
||||||
|
TextColumn::make('created_at')
|
||||||
|
->label(__('Created At'))
|
||||||
|
->dateTime()
|
||||||
|
->sortable()
|
||||||
|
->toggleable(),
|
||||||
|
|
||||||
|
TextColumn::make('updated_at')
|
||||||
|
->dateTime()
|
||||||
|
->label(__('Updated At'))
|
||||||
|
->sortable()
|
||||||
|
->toggleable(isToggledHiddenByDefault: true),
|
||||||
|
|
||||||
|
TextColumn::make('deleted_at')
|
||||||
|
->label(__('Deleted At'))
|
||||||
|
->dateTime()
|
||||||
|
->sortable()
|
||||||
|
->toggleable(isToggledHiddenByDefault: true),
|
||||||
])
|
])
|
||||||
->filters([
|
->filters([
|
||||||
TrashedFilter::make(),
|
TrashedFilter::make(),
|
||||||
|
|||||||
Reference in New Issue
Block a user