@@ 66-77 (lines=12) @@ | ||
63 | * |
|
64 | * @return \Illuminate\Http\Response |
|
65 | */ |
|
66 | public function getTrashed() |
|
67 | { |
|
68 | if (!$this->modelAdmin->hasSoftDeleting()) { |
|
69 | return $this->missingMethod(); |
|
70 | } |
|
71 | ||
72 | return view('flare::admin.modeladmin.trashed', [ |
|
73 | 'modelItems' => $this->modelAdmin->onlyTrashedItems(), |
|
74 | 'totals' => $this->modelAdmin->totals(), |
|
75 | ] |
|
76 | ); |
|
77 | } |
|
78 | ||
79 | /** |
|
80 | * List All Model Items inc Trashed. |
|
@@ 84-95 (lines=12) @@ | ||
81 | * |
|
82 | * @return \Illuminate\Http\Response |
|
83 | */ |
|
84 | public function getAll() |
|
85 | { |
|
86 | if (!$this->modelAdmin->hasSoftDeleting()) { |
|
87 | return $this->missingMethod(); |
|
88 | } |
|
89 | ||
90 | return view('flare::admin.modeladmin.all', [ |
|
91 | 'modelItems' => $this->modelAdmin->allItems(), |
|
92 | 'totals' => $this->modelAdmin->totals(), |
|
93 | ] |
|
94 | ); |
|
95 | } |
|
96 | ||
97 | /** |
|
98 | * Create a new Model Entry from ModelAdmin Create Page. |