fixing styles
This commit is contained in:
@@ -10,12 +10,12 @@ class ContentController extends Controller
|
||||
{
|
||||
public function index(ContentsDataTable $dataTable)
|
||||
{
|
||||
return $dataTable->render('Admin.Shop.Contents.list', $data ?? []);
|
||||
return $dataTable->render('Admin.Shop.Contents.list');
|
||||
}
|
||||
|
||||
public function create()
|
||||
{
|
||||
return view('Admin.Shop.Contents.create', $data ?? []);
|
||||
return view('Admin.Shop.Contents.create');
|
||||
}
|
||||
|
||||
public function store(Request $request)
|
||||
@@ -25,14 +25,11 @@ class ContentController extends Controller
|
||||
return redirect()->route('Admin.Shop.Contents.index');
|
||||
}
|
||||
|
||||
public function show($id)
|
||||
{
|
||||
return view('Admin.Shop.Contents.view', $data ?? []);
|
||||
}
|
||||
|
||||
public function edit($id)
|
||||
{
|
||||
$data['homepage'] = Contents::get($id);
|
||||
$data = [
|
||||
'homepage' => Contents::get($id),
|
||||
];
|
||||
|
||||
return view('Admin.Shop.Contents.edit', $data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user