feat: add bylaw management features including documents, legal authorities, subject categories, and nodes

This commit is contained in:
2026-06-26 13:49:50 +03:30
parent 2e26bd229b
commit 9cf6957675
113 changed files with 1112 additions and 358 deletions

View File

@@ -0,0 +1,13 @@
@extends('admin.layouts.app')
@section('content')
<form method="post" action="{{ route('bylaw-node.update', $bylawNode) }}">@csrf @method('PUT')
<select class="form-control mb-2" name="document_id">@foreach($documents as $item)<option value="{{ $item->id }}" @selected($bylawNode->document_id===$item->id)>{{ $item->title }}</option>@endforeach</select>
<select class="form-control mb-2" name="parent_id"><option value="">والد ندارد</option>@foreach($parents as $item)<option value="{{ $item->id }}" @selected($bylawNode->parent_id===$item->id)>{{ $item->title ?? $item->id }}</option>@endforeach</select>
<select class="form-control mb-2" name="node_type_id">@foreach($types as $item)<option value="{{ $item->id }}" @selected($bylawNode->node_type_id===$item->id)>{{ $item->name }}</option>@endforeach</select>
<input class="form-control mb-2" name="node_identifier" value="{{ $bylawNode->node_identifier }}">
<input class="form-control mb-2" name="title" value="{{ $bylawNode->title }}">
<textarea class="form-control mb-2" name="node_content">{{ $bylawNode->node_content }}</textarea>
<input class="form-control mb-2" name="sort_order" type="number" value="{{ $bylawNode->sort_order }}">
<input class="form-control mb-2" name="valid_from" type="date" value="{{ $bylawNode->valid_from }}"><input class="form-control mb-2" name="valid_to" type="date" value="{{ $bylawNode->valid_to }}">
<select class="form-control mb-2" name="node_status">@foreach(['valid','repealed','annulled','amended','suspended'] as $status)<option value="{{ $status }}" @selected($bylawNode->node_status===$status)>{{ $status }}</option>@endforeach</select>
<button class="btn btn-primary">بروزرسانی</button></form>@endsection