Init(Core): Change repo

This commit is contained in:
2026-04-24 15:29:37 +03:30
commit ededb41a3a
1499 changed files with 199187 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
@extends('admin.layouts.app')
@section('content')
<div class="row">
@include('admin.layouts.errors')
<div class="col-lg-8">
<div class="card">
<div class="card-body">
<h4 class="card-title">افزودن رأی وحدت رویه</h4>
<div>
<form action="{{ route('judicial-precedent.store') }}" method="post">
@csrf
<div class="mb-4">
<label for="ruling_number">شماره رأی</label>
<input class="form-control" name="ruling_number" type="text" placeholder="شماره رأی" required>
</div>
<div class="mb-4">
<label for="ruling_date">تاریخ صدور</label>
<input class="form-control" name="ruling_date" type="date" required>
</div>
<div class="mb-4">
<label for="subject">موضوع</label>
<input class="form-control" name="subject" type="text" placeholder="موضوع رأی" required>
</div>
<div class="mb-4">
<label for="full_text">متن کامل رأی</label>
<textarea class="form-control" name="full_text" id="full_text" cols="30" rows="10" required></textarea>
</div>
<div class="mb-4">
<label for="issuing_authority">مرجع صادر کننده</label>
<input class="form-control" name="issuing_authority" type="text" value="هیأت عمومی دیوان عالی کشور" placeholder="مرجع صادر کننده">
</div>
<div class="mb-4">
<label for="art_ids">مواد مرتبط</label>
<select class="form-control" name="art_ids[]" id="art_ids" multiple size="10">
@foreach ($arts as $art)
<option value="{{$art->id}}">{{$art->title}} - شماره {{$art->number}}</option>
@endforeach
</select>
<small class="form-text text-muted">برای انتخاب چند ماده، کلید Ctrl (یا Cmd در Mac) را نگه دارید</small>
</div>
<button class="btn btn-primary" type="submit">ذخیره</button>
<a href="{{ route('judicial-precedent.index') }}" class="btn btn-secondary">بازگشت</a>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection

View File

@@ -0,0 +1,50 @@
@extends('admin.layouts.app')
@section('content')
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
@include('admin.partial.list-filter', ['filterRoute' => 'judicial-precedent.index'])
<div id="datatable_wrapper" class="dataTables_wrapper dt-bootstrap4 no-footer">
<div class="row">
<div class="col-sm-12">
<table id="datatable" class="table table-bordered dt-responsive nowrap dataTable no-footer dtr-inline" style="border-collapse: collapse; border-spacing: 0px; width: 100%;" role="grid" aria-describedby="datatable_info">
<thead>
<tr role="row">
<th>شماره رأی</th>
<th>تاریخ صدور</th>
<th>موضوع</th>
<th>مرجع صادر کننده</th>
<th>عملیات</th>
</tr>
</thead>
<tbody>
@foreach ($judicialPrecedents as $precedent)
<tr>
<td>{{ $precedent->ruling_number }}</td>
<td>{{ $precedent->ruling_date }}</td>
<td>{{ $precedent->subject }}</td>
<td>{{ $precedent->issuing_authority }}</td>
<td>
<form action="{{ route('judicial-precedent.destroy', $precedent->id) }}" method="POST" style="display: inline;">
@csrf
@method('DELETE')
<button type="submit" class="btn btn-danger waves-effect waves-light" onclick="return confirm('آیا مطمئنید که می‌خواهید این رأی را حذف کنید؟')">حذف</button>
</form>
<a href="{{route('judicial-precedent.edit',$precedent->id)}}" type="button" class="btn btn-primary waves-effect waves-light">ویرایش</a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
<div class="d-flex justify-content-center mt-3">
{{ $judicialPrecedents->withQueryString()->links() }}
</div>
</div>
</div>
</div>
</div>
</div>
@endsection

View File

@@ -0,0 +1,56 @@
@extends('admin.layouts.app')
@section('content')
<div class="row">
@include('admin.layouts.errors')
<div class="col-lg-8">
<div class="card">
<div class="card-body">
<h4 class="card-title">ویرایش رأی وحدت رویه</h4>
<div>
<form action="{{ route('judicial-precedent.update', $judicialPrecedent->id) }}" method="post">
@csrf
@method('PUT')
<div class="mb-4">
<label for="ruling_number">شماره رأی</label>
<input class="form-control" name="ruling_number" type="text" value="{{ $judicialPrecedent->ruling_number }}" placeholder="شماره رأی" required>
</div>
<div class="mb-4">
<label for="ruling_date">تاریخ صدور</label>
<input class="form-control" name="ruling_date" type="date" value="{{ $judicialPrecedent->ruling_date }}" required>
</div>
<div class="mb-4">
<label for="subject">موضوع</label>
<input class="form-control" name="subject" type="text" value="{{ $judicialPrecedent->subject }}" placeholder="موضوع رأی" required>
</div>
<div class="mb-4">
<label for="full_text">متن کامل رأی</label>
<textarea class="form-control" name="full_text" id="full_text" cols="30" rows="10" required>{{ $judicialPrecedent->full_text }}</textarea>
</div>
<div class="mb-4">
<label for="issuing_authority">مرجع صادر کننده</label>
<input class="form-control" name="issuing_authority" type="text" value="{{ $judicialPrecedent->issuing_authority }}" placeholder="مرجع صادر کننده">
</div>
<div class="mb-4">
<label for="art_ids">مواد مرتبط</label>
<select class="form-control" name="art_ids[]" id="art_ids" multiple size="10">
@foreach ($arts as $art)
<option value="{{$art->id}}" {{ in_array($art->id, $selectedArtIds) ? 'selected' : '' }}>{{$art->title}} - شماره {{$art->number}}</option>
@endforeach
</select>
<small class="form-text text-muted">برای انتخاب چند ماده، کلید Ctrl (یا Cmd در Mac) را نگه دارید</small>
</div>
<button class="btn btn-primary" type="submit">بروزرسانی</button>
<a href="{{ route('judicial-precedent.index') }}" class="btn btn-secondary">بازگشت</a>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection