feat: add bylaw management features including documents, legal authorities, subject categories, and nodes
This commit is contained in:
@@ -44,9 +44,9 @@ class ArtController extends Controller
|
||||
$laws = Law::all();
|
||||
$sections = Section::all();
|
||||
$divisions = Division::all();
|
||||
$branches = Branch::all();
|
||||
$branches = Branch::all();
|
||||
|
||||
return view('admin.art.create', compact('chapters', 'parts', 'gates', 'books', 'volums', 'laws', 'sections','branches','divisions'));
|
||||
return view('admin.art.create', compact('chapters', 'parts', 'gates', 'books', 'volums', 'laws', 'sections', 'branches', 'divisions'));
|
||||
}
|
||||
|
||||
public function store(Request $request)
|
||||
@@ -64,7 +64,7 @@ class ArtController extends Controller
|
||||
'law_id' => 'required',
|
||||
'division_id' => 'nullable',
|
||||
'branch_id' => 'nullable',
|
||||
'is_free' => 'nullable'
|
||||
'is_free' => 'nullable',
|
||||
]);
|
||||
|
||||
$validated['is_free'] = $request->input('is_free') ? true : false;
|
||||
@@ -84,10 +84,9 @@ class ArtController extends Controller
|
||||
$laws = Law::all();
|
||||
$sections = Section::all();
|
||||
$divisions = Division::all();
|
||||
$branches = Branch::all();
|
||||
$branches = Branch::all();
|
||||
|
||||
|
||||
return view('admin.art.update', compact('art', 'chapters', 'parts', 'gates', 'books', 'volums', 'laws', 'sections','branches','divisions'));
|
||||
return view('admin.art.update', compact('art', 'chapters', 'parts', 'gates', 'books', 'volums', 'laws', 'sections', 'branches', 'divisions'));
|
||||
}
|
||||
|
||||
public function update(Request $request, Art $art)
|
||||
@@ -106,14 +105,14 @@ class ArtController extends Controller
|
||||
'law_id' => 'required',
|
||||
'division_id' => 'nullable',
|
||||
'branch_id' => 'nullable',
|
||||
'is_free' => 'nullable'
|
||||
'is_free' => 'nullable',
|
||||
]);
|
||||
|
||||
$validated['is_free'] = $request->input('is_free') ? true : false;
|
||||
|
||||
$art->update($validated);
|
||||
|
||||
return redirect(route('art.edit',$art->id));
|
||||
return redirect(route('art.edit', $art->id));
|
||||
}
|
||||
|
||||
public function destroy(Art $art)
|
||||
|
||||
Reference in New Issue
Block a user