feat(Category): add category
This commit is contained in:
@@ -34,6 +34,16 @@
|
||||
<input class="form-control" name="issuing_authority" type="text" value="هیأت عمومی دیوان عالی کشور" placeholder="مرجع صادر کننده">
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="category_id">دستهبندی</label>
|
||||
<select class="form-control" name="category_id" id="category_id">
|
||||
<option value="">انتخاب دستهبندی</option>
|
||||
@foreach ($categories as $category)
|
||||
<option value="{{$category->id}}">{{$category->name}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="art_ids">مواد مرتبط</label>
|
||||
<select class="form-control" name="art_ids[]" id="art_ids" multiple size="10">
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
<th>شماره رأی</th>
|
||||
<th>تاریخ صدور</th>
|
||||
<th>موضوع</th>
|
||||
<th>دستهبندی</th>
|
||||
<th>مرجع صادر کننده</th>
|
||||
<th>عملیات</th>
|
||||
</tr>
|
||||
@@ -24,6 +25,7 @@
|
||||
<td>{{ $precedent->ruling_number }}</td>
|
||||
<td>{{ $precedent->ruling_date }}</td>
|
||||
<td>{{ $precedent->subject }}</td>
|
||||
<td>{{ $precedent->category?->name }}</td>
|
||||
<td>{{ $precedent->issuing_authority }}</td>
|
||||
<td>
|
||||
<form action="{{ route('judicial-precedent.destroy', $precedent->id) }}" method="POST" style="display: inline;">
|
||||
|
||||
@@ -35,6 +35,16 @@
|
||||
<input class="form-control" name="issuing_authority" type="text" value="{{ $judicialPrecedent->issuing_authority }}" placeholder="مرجع صادر کننده">
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="category_id">دستهبندی</label>
|
||||
<select class="form-control" name="category_id" id="category_id">
|
||||
<option value="">انتخاب دستهبندی</option>
|
||||
@foreach ($categories as $category)
|
||||
<option value="{{$category->id}}" {{ $judicialPrecedent->category_id == $category->id ? 'selected' : '' }}>{{$category->name}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="art_ids">مواد مرتبط</label>
|
||||
<select class="form-control" name="art_ids[]" id="art_ids" multiple size="10">
|
||||
|
||||
Reference in New Issue
Block a user