Skip to content

Commit

Permalink
34. hide action & show return date
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrakovich committed Jun 2, 2024
1 parent 7e38bfb commit 1cf0e21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/Admin/Controllers/Orders/OfflineOrderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ protected function grid()
return $user ? '<a href="' . route('admin.users.edit', $user['id']) . '" target="_blank">' . $this->user->getFullName() . '</a>' : null;
});
$grid->column('user_phone', 'Телефон');
$grid->column('returned_at', 'Дата возврата')->display(fn ($datetime) => self::formatDateTime($datetime));

$grid->model()->with(['product.media'])->orderBy('id', 'desc');
$grid->disableActions();
$grid->paginate(50);

$grid->filter(function (Filter $filter) {
Expand Down

0 comments on commit 1cf0e21

Please sign in to comment.