feat: add bylaw management features including documents, legal authorities, subject categories, and nodes
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<form method="post" action="{{ route('bylaw-legal-authority.store') }}">@csrf
|
||||
<input class="form-control mb-2" name="name" placeholder="نام">
|
||||
<select class="form-control mb-2" name="authority_type"><option value="executive">executive</option><option value="judicial">judicial</option><option value="legislative">legislative</option><option value="administrative">administrative</option><option value="other">other</option></select>
|
||||
<textarea class="form-control mb-2" name="description" placeholder="توضیحات"></textarea>
|
||||
<button class="btn btn-primary">ذخیره</button>
|
||||
</form>
|
||||
@endsection
|
||||
@@ -0,0 +1,8 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<div class="card"><div class="card-body">
|
||||
<a class="btn btn-primary mb-3" href="{{ route('bylaw-legal-authority.create') }}">افزودن</a>
|
||||
<table class="table"><thead><tr><th>نام</th><th>نوع</th><th>عملیات</th></tr></thead><tbody>@foreach($items as $item)<tr><td>{{ $item->name }}</td><td>{{ $item->authority_type }}</td><td><a class="btn btn-sm btn-primary" href="{{ route('bylaw-legal-authority.edit', $item) }}">ویرایش</a></td></tr>@endforeach</tbody></table>
|
||||
{{ $items->links() }}
|
||||
</div></div>
|
||||
@endsection
|
||||
@@ -0,0 +1,9 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<form method="post" action="{{ route('bylaw-legal-authority.update', $bylawLegalAuthority) }}">@csrf @method('PUT')
|
||||
<input class="form-control mb-2" name="name" value="{{ $bylawLegalAuthority->name }}">
|
||||
<select class="form-control mb-2" name="authority_type">@foreach(['executive','judicial','legislative','administrative','other'] as $type)<option value="{{ $type }}" @selected($bylawLegalAuthority->authority_type===$type)>{{ $type }}</option>@endforeach</select>
|
||||
<textarea class="form-control mb-2" name="description">{{ $bylawLegalAuthority->description }}</textarea>
|
||||
<button class="btn btn-primary">بروزرسانی</button>
|
||||
</form>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user