Init(Core): Change repo
This commit is contained in:
7
resources/css/app.css
Normal file
7
resources/css/app.css
Normal file
@@ -0,0 +1,7 @@
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
[x-cloak] {
|
||||
display: none;
|
||||
}
|
||||
1
resources/js/app.js
Normal file
1
resources/js/app.js
Normal file
@@ -0,0 +1 @@
|
||||
import './bootstrap';
|
||||
32
resources/js/bootstrap.js
vendored
Normal file
32
resources/js/bootstrap.js
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* We'll load the axios HTTP library which allows us to easily issue requests
|
||||
* to our Laravel back-end. This library automatically handles sending the
|
||||
* CSRF token as a header based on the value of the "XSRF" token cookie.
|
||||
*/
|
||||
|
||||
import axios from 'axios';
|
||||
window.axios = axios;
|
||||
|
||||
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
||||
|
||||
/**
|
||||
* Echo exposes an expressive API for subscribing to channels and listening
|
||||
* for events that are broadcast by Laravel. Echo and event broadcasting
|
||||
* allows your team to easily build robust real-time web applications.
|
||||
*/
|
||||
|
||||
// import Echo from 'laravel-echo';
|
||||
|
||||
// import Pusher from 'pusher-js';
|
||||
// window.Pusher = Pusher;
|
||||
|
||||
// window.Echo = new Echo({
|
||||
// broadcaster: 'pusher',
|
||||
// key: import.meta.env.VITE_PUSHER_APP_KEY,
|
||||
// cluster: import.meta.env.VITE_PUSHER_APP_CLUSTER ?? 'mt1',
|
||||
// wsHost: import.meta.env.VITE_PUSHER_HOST ? import.meta.env.VITE_PUSHER_HOST : `ws-${import.meta.env.VITE_PUSHER_APP_CLUSTER}.pusher.com`,
|
||||
// wsPort: import.meta.env.VITE_PUSHER_PORT ?? 80,
|
||||
// wssPort: import.meta.env.VITE_PUSHER_PORT ?? 443,
|
||||
// forceTLS: (import.meta.env.VITE_PUSHER_SCHEME ?? 'https') === 'https',
|
||||
// enabledTransports: ['ws', 'wss'],
|
||||
// });
|
||||
137
resources/views/admin/art/create.blade.php
Normal file
137
resources/views/admin/art/create.blade.php
Normal file
@@ -0,0 +1,137 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@include('admin.layouts.errors')
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">افزودن ماده</h4>
|
||||
<div>
|
||||
<form action="{{ route('art.store') }}" method="post">
|
||||
@csrf
|
||||
<div class="mb-4">
|
||||
<label for="">تایتل را وارد کنید</label>
|
||||
<textarea class="form-control" name="title" id="title" cols="30" rows="10"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="">متن را وارد کنید</label>
|
||||
<textarea class="form-control" name="text" id="text" cols="30" rows="10"></textarea>
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<label for="">عدد را وارد کنید</label>
|
||||
|
||||
<input class="form-control" name="number" type="number" placeholder="تعداد">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="chapter_id">chapter</label>
|
||||
<select class="form-control" name="chapter_id" id="chapter_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
|
||||
@foreach ($chapters as $chapter)
|
||||
<option value="{{$chapter->id}}">{{$chapter->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="chapter_id">sections</label>
|
||||
<select class="form-control" name="section_id" id="section_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
|
||||
@foreach ($sections as $section)
|
||||
<option value="{{$section->id}}">{{$section->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">part</label>
|
||||
<select class="form-control" name="part_id" id="part_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
|
||||
@foreach ($parts as $part)
|
||||
<option value="{{$part->id}}">{{$part->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">gate</label>
|
||||
<select class="form-control" name="gate_id" id="gate_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
|
||||
@foreach ($gates as $gate)
|
||||
<option value="{{$gate->id}}">{{$gate->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">book</label>
|
||||
<select class="form-control" name="book_id" id="book_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
|
||||
@foreach ($books as $book)
|
||||
<option value="{{$book->id}}">{{$book->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">volum</label>
|
||||
<select class="form-control" name="volum_id" id="volum_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($volums as $volum)
|
||||
<option value="{{$volum->id}}">{{$volum->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="branch_id">Branches</label>
|
||||
<select class="form-control" name="branch_id" id="branch_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($branches as $branch)
|
||||
<option value="{{$branch->id}}">{{$branch->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="division_id">Division</label>
|
||||
<select class="form-control" name="division_id" id="division_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($divisions as $division)
|
||||
<option value="{{$division->id}}">{{$division->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">law</label>
|
||||
<select class="form-control" name="law_id" id="law_id">
|
||||
@foreach ($laws as $law)
|
||||
<option value="{{$law->id}}">{{$law->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox" class="custom-control-input" name="is_free" id="customCheck2">
|
||||
<label class="custom-control-label" for="customCheck2">رایگان باشه؟ </label>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-primary" type="submit">Submit</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
51
resources/views/admin/art/index.blade.php
Normal file
51
resources/views/admin/art/index.blade.php
Normal file
@@ -0,0 +1,51 @@
|
||||
@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' => 'art.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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($arts as $art)
|
||||
<tr>
|
||||
<td>{{ $art->title }}</td>
|
||||
<td>{{ $art->number }}</td>
|
||||
<td>{{ $art->is_free ? 'بله' : 'خیر' }}</td>
|
||||
|
||||
<td>
|
||||
<form action="{{ route('art.destroy', $art->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('art.edit',$art->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">
|
||||
{{ $arts->withQueryString()->links() }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
142
resources/views/admin/art/update.blade.php
Normal file
142
resources/views/admin/art/update.blade.php
Normal file
@@ -0,0 +1,142 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@include('admin.layouts.errors')
|
||||
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Update art</h4>
|
||||
<div>
|
||||
<form action="{{ route('art.update',$art->id) }}" method="post">
|
||||
@csrf
|
||||
@method('put')
|
||||
<div class="mb-4">
|
||||
<label for="">تایتل را وارد کنید</label>
|
||||
|
||||
<textarea class="form-control" name="title" id="title" cols="30" rows="10">{{$art->title}}</textarea>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="">متن را وارد کنید</label>
|
||||
|
||||
<textarea class="form-control" name="text" id="text" cols="30" rows="10">{{$art->text}}</textarea>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="">عدد را وارد کنید</label>
|
||||
|
||||
<input class="form-control" name="number" type="text" placeholder="تعداد" value="{{$art->number}}">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="chapter_id">chapter</label>
|
||||
<select class="form-control" name="chapter_id" id="chapter_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
|
||||
@foreach ($chapters as $chapter)
|
||||
<option value="{{$chapter->id}}" {{ $chapter->id === $art->chapter_id ? 'selected' : '' }}>{{$chapter->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="chapter_id">sections</label>
|
||||
<select class="form-control" name="section_id" id="section_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
|
||||
@foreach ($sections as $section)
|
||||
<option value="{{$section->id}}" {{ $section->id === $art->section_id ? 'selected' : '' }}>{{$section->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">part</label>
|
||||
<select class="form-control" name="part_id" id="part_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($parts as $part)
|
||||
<option value="{{$part->id}}" {{ $part->id === $art->part_id ? 'selected' : '' }}>{{$part->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">gate</label>
|
||||
<select class="form-control" name="gate_id" id="gate_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
|
||||
@foreach ($gates as $gate)
|
||||
<option value="{{$gate->id}}" {{ $gate->id === $art->gate_id ? 'selected' : '' }}>{{$gate->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">book</label>
|
||||
<select class="form-control" name="book_id" id="book_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
|
||||
@foreach ($books as $book)
|
||||
<option value="{{$book->id}}" {{ $book->id === $art->book_id ? 'selected' : '' }}>{{$book->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="branch_id">Branches</label>
|
||||
<select class="form-control" name="branch_id" id="branch_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($branches as $branch)
|
||||
<option value="{{$branch->id}}" {{ $branch->id === $art->branch_id ? 'selected' : '' }}>{{$branch->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="division_id">Division</label>
|
||||
<select class="form-control" name="division_id" id="division_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($divisions as $division)
|
||||
<option value="{{$division->id}}" {{ $division->id === $art->division_id ? 'selected' : '' }}>{{$division->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">volum</label>
|
||||
<select class="form-control" name="volum_id" id="volum_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($volums as $volum)
|
||||
<option value="{{$volum->id}}" {{ $volum->id === $art->volum_id ? 'selected' : '' }}>{{$volum->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">law</label>
|
||||
<select class="form-control" name="law_id" id="law_id">
|
||||
@foreach ($laws as $law)
|
||||
<option value="{{$law->id}}" {{ $law->id === $art->law_id ? 'selected' : '' }}>{{$law->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox" class="custom-control-input" name="is_free" id="customCheck2" {{ $art->is_free ? 'checked' : '' }}>
|
||||
<label class="custom-control-label" for="customCheck2">رایگان باشه؟ </label>
|
||||
</div>
|
||||
|
||||
|
||||
<button class="btn btn-primary" type="submit">submit</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
50
resources/views/admin/book/create.blade.php
Normal file
50
resources/views/admin/book/create.blade.php
Normal file
@@ -0,0 +1,50 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@include('admin.layouts.errors')
|
||||
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">افزودن جلد</h4>
|
||||
<div>
|
||||
<form action="{{ route('book.store') }}" method="post">
|
||||
@csrf
|
||||
<div class="mb-4">
|
||||
<label for="">تایتیل را وارد کنید</label>
|
||||
<input class="form-control" name="title" type="text" placeholder="نام">
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<label for="">عدد را وارد کنید</label>
|
||||
<input class="form-control" name="number" type="number" placeholder="تعداد">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">volum</label>
|
||||
<select class="form-control" name="volum_id" id="volum_id">
|
||||
@foreach ($volums as $volum)
|
||||
<option value="{{$volum->id}}">{{$volum->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="law_id">law</label>
|
||||
<select class="form-control" name="law_id" id="law_id">
|
||||
<option value="">without law</option>
|
||||
@foreach ($laws as $law)
|
||||
<option value="{{$law->id}}">{{$law->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<button class="btn btn-primary" type="submit">ثبت</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
48
resources/views/admin/book/index.blade.php
Normal file
48
resources/views/admin/book/index.blade.php
Normal file
@@ -0,0 +1,48 @@
|
||||
@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' => 'book.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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($books as $book)
|
||||
<tr>
|
||||
<td>{{ $book->title }}</td>
|
||||
<td>{{ $book->number }}</td>
|
||||
<td>
|
||||
<form action="{{ route('book.destroy', $book->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('book.edit',$book->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">
|
||||
{{ $books->withQueryString()->links() }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
48
resources/views/admin/book/update.blade.php
Normal file
48
resources/views/admin/book/update.blade.php
Normal file
@@ -0,0 +1,48 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@include('admin.layouts.errors')
|
||||
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">ویرایش ماده</h4>
|
||||
<div>
|
||||
<form action="{{ route('book.update',$book->id) }}" method="post">
|
||||
@csrf
|
||||
@method('put')
|
||||
<div class="mb-4">
|
||||
<label for="">تایتیل را وارد کنید</label>
|
||||
<input class="form-control" name="title" type="text" placeholder="نام" value="{{$book->title}}">
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="">عدد را وارد کنید</label>
|
||||
<input class="form-control" name="number" type="text" placeholder="تعداد" value="{{$book->number}}">
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<select class="form-control" name="volum_id" id="volum_id">
|
||||
@foreach ($volums as $volum)
|
||||
<option value="{{$volum->id}}" {{ $volum->id === $book->volum_id ? 'selected' : '' }}>{{$volum->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<select class="form-control" name="law_id" id="law_id">
|
||||
<option value="">without law</option>
|
||||
@foreach ($laws as $law)
|
||||
<option value="{{$law->id}}" {{ $law->id === $book->law_id ? 'selected' : '' }}>{{$law->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-primary" type="submit">ثبت</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
118
resources/views/admin/branch/create.blade.php
Normal file
118
resources/views/admin/branch/create.blade.php
Normal file
@@ -0,0 +1,118 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@include('admin.layouts.errors')
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">افزودن شاخه</h4>
|
||||
<div>
|
||||
<form action="{{ route('branch.store') }}" method="post">
|
||||
@csrf
|
||||
<div class="mb-4">
|
||||
<label for="">تایتل را وارد کنید</label>
|
||||
<textarea class="form-control" name="title" id="title" cols="30" rows="10"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="">عدد را وارد کنید</label>
|
||||
|
||||
<input class="form-control" name="number" type="number" placeholder="تعداد">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="chapter_id">division</label>
|
||||
<select class="form-control" name="division_id" id="division_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
|
||||
@foreach ($divisions as $chapter)
|
||||
<option value="{{$chapter->id}}">{{$chapter->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="chapter_id">chapter</label>
|
||||
<select class="form-control" name="chapter_id" id="chapter_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
|
||||
@foreach ($chapters as $chapter)
|
||||
<option value="{{$chapter->id}}">{{$chapter->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="chapter_id">sections</label>
|
||||
<select class="form-control" name="section_id" id="section_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
|
||||
@foreach ($sections as $section)
|
||||
<option value="{{$section->id}}">{{$section->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">part</label>
|
||||
<select class="form-control" name="part_id" id="part_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
|
||||
@foreach ($parts as $part)
|
||||
<option value="{{$part->id}}">{{$part->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">gate</label>
|
||||
<select class="form-control" name="gate_id" id="gate_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
|
||||
@foreach ($gates as $gate)
|
||||
<option value="{{$gate->id}}">{{$gate->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">book</label>
|
||||
<select class="form-control" name="book_id" id="book_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
|
||||
@foreach ($books as $book)
|
||||
<option value="{{$book->id}}">{{$book->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">volum</label>
|
||||
<select class="form-control" name="volum_id" id="volum_id">
|
||||
@foreach ($volums as $volum)
|
||||
<option value="{{$volum->id}}">{{$volum->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">law</label>
|
||||
<select class="form-control" name="law_id" id="law_id">
|
||||
@foreach ($laws as $law)
|
||||
<option value="{{$law->id}}">{{$law->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<button class="btn btn-primary" type="submit">Submit</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
48
resources/views/admin/branch/index.blade.php
Normal file
48
resources/views/admin/branch/index.blade.php
Normal file
@@ -0,0 +1,48 @@
|
||||
@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' => 'branch.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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($branchs as $art)
|
||||
<tr>
|
||||
<td>{{ $art->title }}</td>
|
||||
<td>{{ $art->number }}</td>
|
||||
<td>
|
||||
<form action="{{ route('branch.destroy', $art->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('branch.edit',$art->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">
|
||||
{{ $branchs->withQueryString()->links() }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
121
resources/views/admin/branch/update.blade.php
Normal file
121
resources/views/admin/branch/update.blade.php
Normal file
@@ -0,0 +1,121 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@include('admin.layouts.errors')
|
||||
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Update branch</h4>
|
||||
<div>
|
||||
<form action="{{ route('branch.update',$branch->id) }}" method="post">
|
||||
@csrf
|
||||
@method('put')
|
||||
<div class="mb-4">
|
||||
<label for="">تایتل را وارد کنید</label>
|
||||
|
||||
<textarea class="form-control" name="title" id="title" cols="30" rows="10">{{$branch->title}}</textarea>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="">عدد را وارد کنید</label>
|
||||
|
||||
<input class="form-control" name="number" type="text" placeholder="تعداد" value="{{$branch->number}}">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="chapter_id">division</label>
|
||||
<select class="form-control" name="division_id" id="division_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
|
||||
@foreach ($divisions as $chapter)
|
||||
<option value="{{$chapter->id}}" {{ $chapter->id === $branch->division_id ? 'selected' : '' }}>{{$chapter->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="chapter_id">chapter</label>
|
||||
<select class="form-control" name="chapter_id" id="chapter_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
|
||||
@foreach ($chapters as $chapter)
|
||||
<option value="{{$chapter->id}}" {{ $chapter->id === $branch->chapter_id ? 'selected' : '' }}>{{$chapter->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="chapter_id">sections</label>
|
||||
<select class="form-control" name="section_id" id="section_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
|
||||
@foreach ($sections as $section)
|
||||
<option value="{{$section->id}}" {{ $section->id === $branch->section_id ? 'selected' : '' }}>{{$section->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">part</label>
|
||||
<select class="form-control" name="part_id" id="part_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($parts as $part)
|
||||
<option value="{{$part->id}}" {{ $part->id === $branch->part_id ? 'selected' : '' }}>{{$part->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">gate</label>
|
||||
<select class="form-control" name="gate_id" id="gate_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
|
||||
@foreach ($gates as $gate)
|
||||
<option value="{{$gate->id}}" {{ $gate->id === $branch->gate_id ? 'selected' : '' }}>{{$gate->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">book</label>
|
||||
<select class="form-control" name="book_id" id="book_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
|
||||
@foreach ($books as $book)
|
||||
<option value="{{$book->id}}" {{ $book->id === $branch->book_id ? 'selected' : '' }}>{{$book->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">volum</label>
|
||||
<select class="form-control" name="volum_id" id="volum_id">
|
||||
@foreach ($volums as $volum)
|
||||
<option value="{{$volum->id}}" {{ $volum->id === $branch->volum_id ? 'selected' : '' }}>{{$volum->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">law</label>
|
||||
<select class="form-control" name="law_id" id="law_id">
|
||||
@foreach ($laws as $law)
|
||||
<option value="{{$law->id}}" {{ $law->id === $branch->law_id ? 'selected' : '' }}>{{$law->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<button class="btn btn-primary" type="submit">submit</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
33
resources/views/admin/categories/create.blade.php
Normal file
33
resources/views/admin/categories/create.blade.php
Normal file
@@ -0,0 +1,33 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@include('admin.layouts.errors')
|
||||
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">افزودن دسته جدید</h4>
|
||||
<div>
|
||||
<form action="{{ route('categories.store') }}" method="post">
|
||||
@csrf
|
||||
<div class="mb-4">
|
||||
<label for="">نام دسته بندی را وارد کنید</label>
|
||||
<input class="form-control" name="name" type="text" placeholder="نام">
|
||||
</div>
|
||||
|
||||
<div class="custom-control custom-checkbox">
|
||||
<label for="">نوع</label>
|
||||
<select name="type" class="form-control" id="type">
|
||||
<option value="hagigi">حقیقی</option>
|
||||
<option value="kifari">کیفری</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-primary" type="submit">ثبت</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
48
resources/views/admin/categories/index.blade.php
Normal file
48
resources/views/admin/categories/index.blade.php
Normal file
@@ -0,0 +1,48 @@
|
||||
@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' => 'categories.index', 'extraFilterView' => 'admin.categories.partial-filter'])
|
||||
<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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($categories as $category)
|
||||
<tr>
|
||||
<td>{{ $category->name }}</td>
|
||||
<td>{{ App\Models\Category::getType()[$category->type] }}</td>
|
||||
<td>
|
||||
<form action="{{ route('categories.destroy', $category->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('categories.edit',$category->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">
|
||||
{{ $categories->withQueryString()->links() }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -0,0 +1,7 @@
|
||||
<label class="form-label">نوع</label>
|
||||
<select name="type" class="form-select">
|
||||
<option value="">همه</option>
|
||||
@foreach(App\Models\Category::getType() as $key => $label)
|
||||
<option value="{{ $key }}" {{ request('type') === $key ? 'selected' : '' }}>{{ $label }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
35
resources/views/admin/categories/update.blade.php
Normal file
35
resources/views/admin/categories/update.blade.php
Normal file
@@ -0,0 +1,35 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@include('admin.layouts.errors')
|
||||
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">ویرایش دسته بندی</h4>
|
||||
<div>
|
||||
<form action="{{ route('categories.update',$category->id) }}" method="post">
|
||||
@csrf
|
||||
@method('put')
|
||||
<div class="mb-4">
|
||||
<label for="">تایتیل را وارد کنید</label>
|
||||
<input class="form-control" name="name" type="text" placeholder="نام" value="{{$category->name}}">
|
||||
</div>
|
||||
|
||||
<div class="custom-control custom-checkbox">
|
||||
<label for="">نوع</label>
|
||||
<select name="type" class="form-control" id="type">
|
||||
<option value="hagigi" {{ $category->type === 'hagigi' ? 'selected' : '' }}>حقیقی</option>
|
||||
<option value="kifari" {{ $category->type === 'kifari' ? 'selected' : '' }}>کیفری</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<button class="btn btn-primary" type="submit">ثبت</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
85
resources/views/admin/chapter/create.blade.php
Normal file
85
resources/views/admin/chapter/create.blade.php
Normal file
@@ -0,0 +1,85 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@include('admin.layouts.errors')
|
||||
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">افزودن جلد</h4>
|
||||
<div>
|
||||
<form action="{{ route('chapter.store') }}" method="post">
|
||||
@csrf
|
||||
<div class="mb-4">
|
||||
<label for="">تایتیل را وارد کنید</label>
|
||||
<input class="form-control" name="title" type="text" placeholder="نام">
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<label for="">عدد را وارد کنید</label>
|
||||
<input class="form-control" name="number" type="number" placeholder="تعداد">
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="section_id">Section</label>
|
||||
<select class="form-control" name="section_id" id="section_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
|
||||
@foreach ($sections as $section)
|
||||
<option value="{{$section->id}}">{{$section->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="book_id">Book</label>
|
||||
<select class="form-control" name="book_id" id="book_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
|
||||
@foreach ($books as $book)
|
||||
<option value="{{$book->id}}">{{$book->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="division_id">Division</label>
|
||||
<select class="form-control" name="division_id" id="division_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($divisions as $division)
|
||||
<option value="{{$division->id}}">{{$division->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">Volum</label>
|
||||
<select class="form-control" name="volum_id" id="volum_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
|
||||
@foreach ($volums as $volum)
|
||||
<option value="{{$volum->id}}">{{$volum->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="law_id">Law</label>
|
||||
<select class="form-control" name="law_id" id="law_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
|
||||
@foreach ($laws as $law)
|
||||
<option value="{{$law->id}}">{{$law->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<button class="btn btn-primary" type="submit">ثبت</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
48
resources/views/admin/chapter/index.blade.php
Normal file
48
resources/views/admin/chapter/index.blade.php
Normal file
@@ -0,0 +1,48 @@
|
||||
@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' => 'chapter.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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($chapters as $chapter)
|
||||
<tr>
|
||||
<td>{{ $chapter->title }}</td>
|
||||
<td>{{ $chapter->number }}</td>
|
||||
<td>
|
||||
<form action="{{ route('chapter.destroy', $chapter->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('chapter.edit',$chapter->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">
|
||||
{{ $chapters->withQueryString()->links() }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
86
resources/views/admin/chapter/update.blade.php
Normal file
86
resources/views/admin/chapter/update.blade.php
Normal file
@@ -0,0 +1,86 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@include('admin.layouts.errors')
|
||||
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">ویرایش ماده</h4>
|
||||
<div>
|
||||
<form action="{{ route('chapter.update',$chapter->id) }}" method="post">
|
||||
@csrf
|
||||
@method('put')
|
||||
<div class="mb-4">
|
||||
<label for="">تایتیل را وارد کنید</label>
|
||||
<input class="form-control" name="title" type="text" placeholder="نام" value="{{$chapter->title}}">
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="">عدد را وارد کنید</label>
|
||||
<input class="form-control" name="number" type="text" placeholder="تعداد" value="{{$chapter->number}}">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="section_id">section</label>
|
||||
<select class="form-control" name="section_id" id="section_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($sections as $section)
|
||||
<option value="{{$section->id}}" {{ $section->id === $chapter->section_id ? 'selected' : '' }}>{{$section->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="division_id">Division</label>
|
||||
<select class="form-control" name="division_id" id="division_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($divisions as $division)
|
||||
<option value="{{$division->id}}" {{ $division->id === $chapter->division_id ? 'selected' : '' }}>{{$division->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="book_id">book</label>
|
||||
<select class="form-control" name="book_id" id="book_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($books as $book)
|
||||
<option value="{{$book->id}}" {{ $book->id === $chapter->book_id ? 'selected' : '' }}>{{$book->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">volum</label>
|
||||
<select class="form-control" name="volum_id" id="volum_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($volums as $volum)
|
||||
<option value="{{$volum->id}}" {{ $volum->id === $chapter->volum_id ? 'selected' : '' }}>{{$volum->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="law_id">law</label>
|
||||
<select class="form-control" name="law_id" id="law_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($laws as $law)
|
||||
<option value="{{$law->id}}" {{ $law->id === $chapter->law_id ? 'selected' : '' }}>{{$law->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<button class="btn btn-primary" type="submit">ثبت</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
1
resources/views/admin/dashboard.blade.php
Normal file
1
resources/views/admin/dashboard.blade.php
Normal file
@@ -0,0 +1 @@
|
||||
@extends('admin.layouts.app')
|
||||
61
resources/views/admin/division/create.blade.php
Normal file
61
resources/views/admin/division/create.blade.php
Normal file
@@ -0,0 +1,61 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@include('admin.layouts.errors')
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">افزودن قسمت</h4>
|
||||
<div>
|
||||
<form action="{{ route('division.store') }}" method="post">
|
||||
@csrf
|
||||
<div class="mb-4">
|
||||
<label for="">تایتل را وارد کنید</label>
|
||||
<textarea class="form-control" name="title" id="title" cols="30" rows="10"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="">عدد را وارد کنید</label>
|
||||
|
||||
<input class="form-control" name="number" type="number" placeholder="تعداد">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">book</label>
|
||||
<select class="form-control" name="book_id" id="book_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
|
||||
@foreach ($books as $book)
|
||||
<option value="{{$book->id}}">{{$book->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">volum</label>
|
||||
<select class="form-control" name="volum_id" id="volum_id">
|
||||
@foreach ($volums as $volum)
|
||||
<option value="{{$volum->id}}">{{$volum->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">law</label>
|
||||
<select class="form-control" name="law_id" id="law_id">
|
||||
@foreach ($laws as $law)
|
||||
<option value="{{$law->id}}">{{$law->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<button class="btn btn-primary" type="submit">Submit</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
48
resources/views/admin/division/index.blade.php
Normal file
48
resources/views/admin/division/index.blade.php
Normal file
@@ -0,0 +1,48 @@
|
||||
@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' => 'division.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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($divisions as $art)
|
||||
<tr>
|
||||
<td>{{ $art->title }}</td>
|
||||
<td>{{ $art->number }}</td>
|
||||
<td>
|
||||
<form action="{{ route('division.destroy', $art->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('division.edit',$art->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">
|
||||
{{ $divisions->withQueryString()->links() }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
65
resources/views/admin/division/update.blade.php
Normal file
65
resources/views/admin/division/update.blade.php
Normal file
@@ -0,0 +1,65 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@include('admin.layouts.errors')
|
||||
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">ویرایش قسمت </h4>
|
||||
<div>
|
||||
<form action="{{ route('division.update',$division->id) }}" method="post">
|
||||
@csrf
|
||||
@method('put')
|
||||
<div class="mb-4">
|
||||
<label for="">تایتل را وارد کنید</label>
|
||||
|
||||
<textarea class="form-control" name="title" id="title" cols="30" rows="10">{{$division->title}}</textarea>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="">عدد را وارد کنید</label>
|
||||
|
||||
<input class="form-control" name="number" type="text" placeholder="تعداد" value="{{$division->number}}">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">book</label>
|
||||
<select class="form-control" name="book_id" id="book_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
|
||||
@foreach ($books as $book)
|
||||
<option value="{{$book->id}}" {{ $book->id === $division->book_id ? 'selected' : '' }}>{{$book->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">volum</label>
|
||||
<select class="form-control" name="volum_id" id="volum_id">
|
||||
@foreach ($volums as $volum)
|
||||
<option value="{{$volum->id}}" {{ $volum->id === $division->volum_id ? 'selected' : '' }}>{{$volum->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">law</label>
|
||||
<select class="form-control" name="law_id" id="law_id">
|
||||
@foreach ($laws as $law)
|
||||
<option value="{{$law->id}}" {{ $law->id === $division->law_id ? 'selected' : '' }}>{{$law->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<button class="btn btn-primary" type="submit">submit</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
103
resources/views/admin/gate/create.blade.php
Normal file
103
resources/views/admin/gate/create.blade.php
Normal file
@@ -0,0 +1,103 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@include('admin.layouts.errors')
|
||||
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">افزودن گیت</h4>
|
||||
<div>
|
||||
<form action="{{ route('gate.store') }}" method="post">
|
||||
@csrf
|
||||
<div class="mb-4">
|
||||
<label for="">تایتیل را وارد کنید</label>
|
||||
<input class="form-control" name="title" type="text" placeholder="نام">
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<label for="">عدد را وارد کنید</label>
|
||||
<input class="form-control" name="number" type="number" placeholder="تعداد">
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="part_id">جلد</label>
|
||||
<select class="form-control" name="part_id" id="part_id">
|
||||
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($parts as $part)
|
||||
<option value="{{$part->id}}">{{$part->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="division_id">Division</label>
|
||||
<select class="form-control" name="division_id" id="division_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($divisions as $division)
|
||||
<option value="{{$division->id}}">{{$division->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="chapter_id">chapter</label>
|
||||
<select class="form-control" name="chapter_id" id="chapter_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($chapters as $chapter)
|
||||
<option value="{{$chapter->id}}">{{$chapter->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="section_id">section</label>
|
||||
<select class="form-control" name="section_id" id="section_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($sections as $section)
|
||||
<option value="{{$section->id}}">{{$section->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="book_id">book</label>
|
||||
<select class="form-control" name="book_id" id="book_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($books as $book)
|
||||
<option value="{{$book->id}}">{{$book->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">volum</label>
|
||||
<select class="form-control" name="volum_id" id="volum_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($volums as $volum)
|
||||
<option value="{{$volum->id}}">{{$volum->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="law_id">law</label>
|
||||
<select class="form-control" name="law_id" id="law_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($laws as $law)
|
||||
<option value="{{$law->id}}">{{$law->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-primary" type="submit">ثبت</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
48
resources/views/admin/gate/index.blade.php
Normal file
48
resources/views/admin/gate/index.blade.php
Normal file
@@ -0,0 +1,48 @@
|
||||
@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' => 'gate.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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($gates as $gate)
|
||||
<tr>
|
||||
<td>{{ $gate->title }}</td>
|
||||
<td>{{ $gate->number }}</td>
|
||||
<td>
|
||||
<form action="{{ route('gate.destroy', $gate->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('gate.edit',$gate->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">
|
||||
{{ $gates->withQueryString()->links() }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
103
resources/views/admin/gate/update.blade.php
Normal file
103
resources/views/admin/gate/update.blade.php
Normal file
@@ -0,0 +1,103 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@include('admin.layouts.errors')
|
||||
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">ویرایش گیت</h4>
|
||||
<div>
|
||||
<form action="{{ route('gate.update',$gate->id) }}" method="post">
|
||||
@csrf
|
||||
@method('put')
|
||||
<div class="mb-4">
|
||||
<label for="">تایتیل را وارد کنید</label>
|
||||
<input class="form-control" name="title" type="text" placeholder="نام" value="{{$gate->title}}">
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="">عدد را وارد کنید</label>
|
||||
<input class="form-control" name="number" type="text" placeholder="تعداد" value="{{$gate->number}}">
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<select class="form-control" name="part_id" id="part_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($parts as $part)
|
||||
<option value="{{$part->id}}" {{ $part->id === $gate->part_id ? 'selected' : '' }}>{{$gate->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="chapter_id">chapter</label>
|
||||
<select class="form-control" name="chapter_id" id="chapter_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($chapters as $chapter)
|
||||
<option value="{{$chapter->id}}" {{ $chapter->id === $gate->part_id ? 'selected' : '' }}>{{$chapter->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="section_id">section</label>
|
||||
<select class="form-control" name="section_id" id="section_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($sections as $section)
|
||||
<option value="{{$section->id}}" {{ $section->id === $gate->part_id ? 'selected' : '' }}>{{$section->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="book_id">book</label>
|
||||
<select class="form-control" name="book_id" id="book_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($books as $book)
|
||||
<option value="{{$book->id}}" {{ $book->id === $gate->part_id ? 'selected' : '' }}>{{$book->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="division_id">Division</label>
|
||||
<select class="form-control" name="division_id" id="division_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($divisions as $division)
|
||||
<option value="{{$division->id}}" {{ $division->id === $gate->division_id ? 'selected' : '' }}>{{$division->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">volum</label>
|
||||
<select class="form-control" name="volum_id" id="volum_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($volums as $volum)
|
||||
<option value="{{$volum->id}}" {{ $volum->id === $gate->part_id ? 'selected' : '' }}>{{$volum->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="law_id">law</label>
|
||||
<select class="form-control" name="law_id" id="law_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($laws as $law)
|
||||
<option value="{{$law->id}}" {{ $law->id === $gate->part_id ? 'selected' : '' }}>{{$law->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-primary" type="submit">ثبت</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
55
resources/views/admin/judicial-precedent/create.blade.php
Normal file
55
resources/views/admin/judicial-precedent/create.blade.php
Normal 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
|
||||
50
resources/views/admin/judicial-precedent/index.blade.php
Normal file
50
resources/views/admin/judicial-precedent/index.blade.php
Normal 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
|
||||
56
resources/views/admin/judicial-precedent/update.blade.php
Normal file
56
resources/views/admin/judicial-precedent/update.blade.php
Normal 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
|
||||
53
resources/views/admin/law/create.blade.php
Normal file
53
resources/views/admin/law/create.blade.php
Normal file
@@ -0,0 +1,53 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@include('admin.layouts.errors')
|
||||
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">افزودن قانون</h4>
|
||||
<div>
|
||||
<form action="{{ route('law.store') }}" method="post" enctype="multipart/form-data">
|
||||
@csrf
|
||||
<div class="mb-4">
|
||||
<label for="">تایتیل را وارد کنید</label>
|
||||
<input class="form-control" name="title" type="text" placeholder="نام">
|
||||
</div>
|
||||
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox" class="custom-control-input" name="is_locked" id="customCheck2">
|
||||
<label class="custom-control-label" for="customCheck2">قفل باشه؟</label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="division_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="">قیمت را وارد کنید</label>
|
||||
<input class="form-control" name="price" type="text" placeholder="قیمت">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="">عکس را وارد کنید</label>
|
||||
<input class="form-control" name="image" type="file" placeholder="عکس">
|
||||
</div>
|
||||
|
||||
|
||||
<button class="btn btn-primary" type="submit">ثبت</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
50
resources/views/admin/law/index.blade.php
Normal file
50
resources/views/admin/law/index.blade.php
Normal 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' => 'law.index', 'extraFilterView' => 'admin.law.partial-filter'])
|
||||
<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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($laws as $law)
|
||||
<tr>
|
||||
<td>{{ $law->title }}</td>
|
||||
<td>{{ $law->is_locked ? 'بله' : 'خیر' }}</td>
|
||||
<td>{{ $law->price }}</td>
|
||||
<td>
|
||||
<form action="{{ route('law.destroy', $law->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('law.edit',$law->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">
|
||||
{{ $laws->withQueryString()->links() }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
6
resources/views/admin/law/partial-filter.blade.php
Normal file
6
resources/views/admin/law/partial-filter.blade.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<label class="form-label">وضعیت قفل</label>
|
||||
<select name="locked" class="form-select">
|
||||
<option value="">همه</option>
|
||||
<option value="1" {{ request('locked') === '1' ? 'selected' : '' }}>قفل شده</option>
|
||||
<option value="0" {{ request('locked') === '0' ? 'selected' : '' }}>باز</option>
|
||||
</select>
|
||||
52
resources/views/admin/law/update.blade.php
Normal file
52
resources/views/admin/law/update.blade.php
Normal file
@@ -0,0 +1,52 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@include('admin.layouts.errors')
|
||||
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">ویرایش قانون</h4>
|
||||
<div>
|
||||
<form action="{{ route('law.update',$law->id) }}" method="post" enctype="multipart/form-data">
|
||||
@csrf
|
||||
@method('put')
|
||||
<div class="mb-4">
|
||||
<label for="">تایتیل را وارد کنید</label>
|
||||
<input class="form-control" name="title" type="text" placeholder="نام" value="{{$law->title}}">
|
||||
</div>
|
||||
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox" class="custom-control-input" name="is_locked" id="customCheck2" {{ $law->is_locked ? 'checked' : '' }}>
|
||||
<label class="custom-control-label" for="customCheck2">قفل باشه؟</label>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="division_id">دسته بندی</label>
|
||||
<select class="form-control" name="category_id" id="category_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($categories as $category)
|
||||
<option value="{{$category->id}}" {{ $category->id === $law->category_id ? 'selected' : '' }}>{{$category->name}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="">قیمت را وارد کنید</label>
|
||||
<input class="form-control" name="price" type="text" placeholder="قیمت" value="{{ $law->price }}">
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="">عکس را وارد کنید</label>
|
||||
<input class="form-control" name="image" type="file" placeholder="عکس">
|
||||
</div>
|
||||
|
||||
<button class="btn btn-primary" type="submit">ثبت</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
48
resources/views/admin/layouts/app.blade.php
Normal file
48
resources/views/admin/layouts/app.blade.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fa" dir="rtl">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>پنل مدیریت</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
@include('admin.partial.styles')
|
||||
</head>
|
||||
|
||||
<body data-layout="detached" data-topbar="colored">
|
||||
<div class="container-fluid">
|
||||
<div id="layout-wrapper">
|
||||
|
||||
@include('admin.partial.header')
|
||||
|
||||
@include('admin.partial.menu')
|
||||
|
||||
<div class="main-content">
|
||||
|
||||
<div class="page-content">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="page-title-box d-flex align-items-center justify-content-between">
|
||||
<h4 class="page-title mb-0 font-size-18">داشبورد</h4>
|
||||
|
||||
<div class="page-title-right">
|
||||
<ol class="breadcrumb m-0">
|
||||
<li class="breadcrumb-item active">به پنل مدیریت خوش امدید</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@yield('content')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rightbar-overlay"></div>
|
||||
|
||||
@include('admin.partial.scripts')
|
||||
</body>
|
||||
|
||||
</html>
|
||||
10
resources/views/admin/layouts/errors.blade.php
Normal file
10
resources/views/admin/layouts/errors.blade.php
Normal file
@@ -0,0 +1,10 @@
|
||||
@if ($errors->any())
|
||||
@foreach ($errors->all() as $error)
|
||||
<div class="alert alert-danger alert-dismissible fade show" role="alert">
|
||||
<i class="mdi mdi-block-helper mr-2"></i> {{ $error }}
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
26
resources/views/admin/notifications/create.blade.php
Normal file
26
resources/views/admin/notifications/create.blade.php
Normal file
@@ -0,0 +1,26 @@
|
||||
@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>
|
||||
<form action="{{ route('notifications.store') }}" method="post">
|
||||
@csrf
|
||||
<div class="mb-4">
|
||||
<label for="title">عنوان</label>
|
||||
<input class="form-control" name="title" id="title" type="text" value="{{ old('title') }}" placeholder="عنوان اعلان" required>
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<label for="description">توضیحات</label>
|
||||
<textarea class="form-control" name="description" id="description" rows="5" placeholder="توضیحات">{{ old('description') }}</textarea>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">ثبت</button>
|
||||
<a href="{{ route('notifications.index') }}" class="btn btn-outline-secondary">انصراف</a>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
48
resources/views/admin/notifications/index.blade.php
Normal file
48
resources/views/admin/notifications/index.blade.php
Normal file
@@ -0,0 +1,48 @@
|
||||
@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' => 'notifications.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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($notifications as $notification)
|
||||
<tr>
|
||||
<td>{{ $notification->title }}</td>
|
||||
<td>{{ Str::limit($notification->description, 80) }}</td>
|
||||
<td>{{ $notification->created_at->format('Y/m/d H:i') }}</td>
|
||||
<td>
|
||||
<form action="{{ route('notifications.destroy', $notification->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('notifications.edit', $notification->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">
|
||||
{{ $notifications->withQueryString()->links() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
27
resources/views/admin/notifications/update.blade.php
Normal file
27
resources/views/admin/notifications/update.blade.php
Normal file
@@ -0,0 +1,27 @@
|
||||
@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>
|
||||
<form action="{{ route('notifications.update', $notification->id) }}" method="post">
|
||||
@csrf
|
||||
@method('PUT')
|
||||
<div class="mb-4">
|
||||
<label for="title">عنوان</label>
|
||||
<input class="form-control" name="title" id="title" type="text" value="{{ old('title', $notification->title) }}" placeholder="عنوان اعلان" required>
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<label for="description">توضیحات</label>
|
||||
<textarea class="form-control" name="description" id="description" rows="5" placeholder="توضیحات">{{ old('description', $notification->description) }}</textarea>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">ذخیره</button>
|
||||
<a href="{{ route('notifications.index') }}" class="btn btn-outline-secondary">انصراف</a>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
92
resources/views/admin/part/create.blade.php
Normal file
92
resources/views/admin/part/create.blade.php
Normal file
@@ -0,0 +1,92 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@include('admin.layouts.errors')
|
||||
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">افزودن پارت</h4>
|
||||
<div>
|
||||
<form action="{{ route('part.store') }}" method="post">
|
||||
@csrf
|
||||
<div class="mb-4">
|
||||
<label for="">تایتیل را وارد کنید</label>
|
||||
<input class="form-control" name="title" type="text" placeholder="نام">
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<label for="">عدد را وارد کنید</label>
|
||||
<input class="form-control" name="number" type="number" placeholder="تعداد">
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="chapter_id">chapter</label>
|
||||
<select class="form-control" name="chapter_id" id="chapter_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($chapters as $chapter)
|
||||
<option value="{{$chapter->id}}">{{$chapter->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="section_id">section</label>
|
||||
<select class="form-control" name="section_id" id="section_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($sections as $section)
|
||||
<option value="{{$section->id}}">{{$section->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="division_id">Division</label>
|
||||
<select class="form-control" name="division_id" id="division_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($divisions as $division)
|
||||
<option value="{{$division->id}}">{{$division->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="book_id">book</label>
|
||||
<select class="form-control" name="book_id" id="book_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($books as $book)
|
||||
<option value="{{$book->id}}">{{$book->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">volum</label>
|
||||
<select class="form-control" name="volum_id" id="volum_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($volums as $volum)
|
||||
<option value="{{$volum->id}}">{{$volum->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="law_id">law</label>
|
||||
<select class="form-control" name="law_id" id="law_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($laws as $law)
|
||||
<option value="{{$law->id}}">{{$law->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-primary" type="submit">ثبت</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
48
resources/views/admin/part/index.blade.php
Normal file
48
resources/views/admin/part/index.blade.php
Normal file
@@ -0,0 +1,48 @@
|
||||
@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' => 'part.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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($parts as $part)
|
||||
<tr>
|
||||
<td>{{ $part->title }}</td>
|
||||
<td>{{ $part->number }}</td>
|
||||
<td>
|
||||
<form action="{{ route('part.destroy', $part->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('part.edit',$part->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">
|
||||
{{ $parts->withQueryString()->links() }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
94
resources/views/admin/part/update.blade.php
Normal file
94
resources/views/admin/part/update.blade.php
Normal file
@@ -0,0 +1,94 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@include('admin.layouts.errors')
|
||||
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">ویرایش ماده</h4>
|
||||
<div>
|
||||
<form action="{{ route('part.update',$part->id) }}" method="post">
|
||||
@csrf
|
||||
@method('put')
|
||||
<div class="mb-4">
|
||||
<label for="">تایتیل را وارد کنید</label>
|
||||
<input class="form-control" name="title" type="text" placeholder="نام" value="{{$part->title}}">
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="">عدد را وارد کنید</label>
|
||||
<input class="form-control" name="number" type="text" placeholder="تعداد" value="{{$part->number}}">
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="chapter_id">chapter</label>
|
||||
<select class="form-control" name="chapter_id" id="chapter_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($chapters as $chapter)
|
||||
<option value="{{$chapter->id}}" {{ $chapter->id === $part->chapter_id ? 'selected' : '' }}>{{$chapter->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="section_id">section</label>
|
||||
<select class="form-control" name="section_id" id="section_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($sections as $section)
|
||||
<option value="{{$section->id}}" {{ $section->id === $part->section_id ? 'selected' : '' }}>{{$section->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="book_id">book</label>
|
||||
<select class="form-control" name="book_id" id="book_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($books as $book)
|
||||
<option value="{{$book->id}}" {{ $book->id === $part->book_id ? 'selected' : '' }}>{{$book->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">volum</label>
|
||||
<select class="form-control" name="volum_id" id="volum_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($volums as $volum)
|
||||
<option value="{{$volum->id}}" {{ $volum->id === $part->volum_id ? 'selected' : '' }}>{{$volum->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="division_id">Division</label>
|
||||
<select class="form-control" name="division_id" id="division_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($divisions as $division)
|
||||
<option value="{{$division->id}}" {{ $division->id === $part->division_id ? 'selected' : '' }}>{{$division->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="law_id">law</label>
|
||||
<select class="form-control" name="law_id" id="law_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($laws as $law)
|
||||
<option value="{{$law->id}}" {{ $law->id === $part->law_id ? 'selected' : '' }}>{{$law->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-primary" type="submit">ثبت</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
16
resources/views/admin/partial/footer.blade.php
Normal file
16
resources/views/admin/partial/footer.blade.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<footer class="footer">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<script>
|
||||
document.write(new Date().getFullYear())
|
||||
</script>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="text-sm-right d-none d-sm-block">
|
||||
قدرت گرفته از <a href="https://geekgrove.ir">گیت گرو</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
47
resources/views/admin/partial/header.blade.php
Normal file
47
resources/views/admin/partial/header.blade.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<header id="page-topbar">
|
||||
<div class="navbar-header">
|
||||
<div class="container-fluid">
|
||||
<div class="float-right">
|
||||
|
||||
<div class="dropdown d-inline-block">
|
||||
<button type="button" class="btn header-item waves-effect" id="page-header-user-dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<img class="rounded-circle header-profile-user" src="assets/images/users/avatar-2.jpg" alt="Header Avatar">
|
||||
<span class="d-none d-xl-inline-block ml-1">جان</span>
|
||||
<i class="mdi mdi-chevron-down d-none d-xl-inline-block"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu dropdown-menu-right">
|
||||
<a class="dropdown-item" href="#"><i class="bx bx-user font-size-16 align-middle mr-1"></i> پروفایل</a>
|
||||
<a class="dropdown-item text-danger" href="#"><i class="bx bx-power-off font-size-16 align-middle mr-1 text-danger"></i> خروج</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div>
|
||||
<div class="navbar-brand-box">
|
||||
<a href="index.html" class="logo logo-dark">
|
||||
<span class="logo-sm">
|
||||
<img src="assets/images/logo-sm.png" alt="" height="20">
|
||||
</span>
|
||||
<span class="logo-lg">
|
||||
<img src="assets/images/logo-dark.png" alt="" height="17">
|
||||
</span>
|
||||
</a>
|
||||
|
||||
<a href="index.html" class="logo logo-light">
|
||||
<span class="logo-sm">
|
||||
<img src="assets/images/logo-sm.png" alt="" height="20">
|
||||
</span>
|
||||
<span class="logo-lg">
|
||||
<img src="assets/images/logo-light.png" alt="" height="19">
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<button type="button" class="btn btn-sm px-3 font-size-16 header-item toggle-btn waves-effect" id="vertical-menu-btn">
|
||||
<i class="fa fa-fw fa-bars"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
26
resources/views/admin/partial/list-filter.blade.php
Normal file
26
resources/views/admin/partial/list-filter.blade.php
Normal file
@@ -0,0 +1,26 @@
|
||||
{{-- فیلتر و انتخاب تعداد در هر صفحه - استفاده: @include('admin.partial.list-filter', ['filterRoute' => 'users.index']) --}}
|
||||
<form method="GET" action="{{ route($filterRoute) }}" class="mb-3">
|
||||
<div class="row g-2 align-items-end">
|
||||
<div class="col-md-4">
|
||||
<label class="form-label">جستجو</label>
|
||||
<input type="text" name="q" class="form-control" value="{{ request('q') }}" placeholder="جستجو...">
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label class="form-label">تعداد در هر صفحه</label>
|
||||
<select name="per_page" class="form-select">
|
||||
@foreach([10, 15, 25, 50, 100] as $n)
|
||||
<option value="{{ $n }}" {{ request('per_page', 15) == $n ? 'selected' : '' }}>{{ $n }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
@isset($extraFilterView)
|
||||
<div class="col-md-4">
|
||||
@include($extraFilterView)
|
||||
</div>
|
||||
@endisset
|
||||
<div class="col-md-auto">
|
||||
<button type="submit" class="btn btn-primary">اعمال فیلتر</button>
|
||||
<a href="{{ route($filterRoute) }}" class="btn btn-outline-secondary">پاک کردن</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
224
resources/views/admin/partial/menu.blade.php
Normal file
224
resources/views/admin/partial/menu.blade.php
Normal file
@@ -0,0 +1,224 @@
|
||||
<div class="vertical-menu">
|
||||
|
||||
<div class="h-100">
|
||||
|
||||
<div class="user-wid text-center py-4">
|
||||
<div class="user-img">
|
||||
<img src="/assets/images/users/avatar-2.jpg" alt="" class="avatar-md mx-auto rounded-circle">
|
||||
</div>
|
||||
|
||||
<div class="mt-3">
|
||||
<a href="#" class="text-dark font-weight-medium font-size-16 line-height-h">جان اسنو</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="sidebar-menu">
|
||||
<ul class="metismenu list-unstyled" id="side-menu">
|
||||
<li class="menu-title">منو</li>
|
||||
<li>
|
||||
<a href="{{ route('dashboard') }}" class="waves-effect">
|
||||
<i class="mdi mdi-airplay"></i>
|
||||
<span>داشبورد</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
<li>
|
||||
<a href="javascript:%20void(0);" class="has-arrow waves-effect">
|
||||
<i class="mdi mdi-account-circle-outline"></i>
|
||||
<span>دسته بندی</span>
|
||||
</a>
|
||||
<ul class="sub-menu" aria-expanded="false">
|
||||
<li><a href="{{ route('categories.index') }}">لیست دسته ها</a></li>
|
||||
<li><a href="{{ route('categories.create') }}">افزودن دسته جدید</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li>
|
||||
<a href="javascript:%20void(0);" class="has-arrow waves-effect">
|
||||
<i class="mdi mdi-account-circle-outline"></i>
|
||||
<span>کاربران</span>
|
||||
</a>
|
||||
<ul class="sub-menu" aria-expanded="false">
|
||||
<li><a href="{{ route('users.index') }}">لیست کاربران</a></li>
|
||||
<li><a href="{{ route('users.create') }}">افزودن کاربر</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li>
|
||||
<a href="javascript:%20void(0);" class="has-arrow waves-effect">
|
||||
<i class="mdi mdi-account-circle-outline"></i>
|
||||
<span>Law</span>
|
||||
</a>
|
||||
<ul class="sub-menu" aria-expanded="false">
|
||||
<li><a href="{{route('law.index')}}">list law</a></li>
|
||||
<li><a href="{{ route('law.create') }}">create law</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="javascript:%20void(0);" class="has-arrow waves-effect">
|
||||
<i class="mdi mdi-account-circle-outline"></i>
|
||||
<span>Arts</span>
|
||||
</a>
|
||||
<ul class="sub-menu" aria-expanded="false">
|
||||
<li><a href="{{route('art.index')}}">list art</a></li>
|
||||
<li><a href="{{ route('art.create') }}">create art</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
<li>
|
||||
<a href="javascript:%20void(0);" class="has-arrow waves-effect">
|
||||
<i class="mdi mdi-account-circle-outline"></i>
|
||||
<span>volum</span>
|
||||
</a>
|
||||
<ul class="sub-menu" aria-expanded="false">
|
||||
<li><a href="{{route('volum.index')}}">list volum</a></li>
|
||||
<li><a href="{{ route('volum.create') }}">create volum</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li>
|
||||
<a href="javascript:%20void(0);" class="has-arrow waves-effect">
|
||||
<i class="mdi mdi-account-circle-outline"></i>
|
||||
<span>Book</span>
|
||||
</a>
|
||||
<ul class="sub-menu" aria-expanded="false">
|
||||
<li><a href="{{route('book.index')}}">list book</a></li>
|
||||
<li><a href="{{ route('book.create') }}">create book</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
<li>
|
||||
<a href="javascript:%20void(0);" class="has-arrow waves-effect">
|
||||
<i class="mdi mdi-account-circle-outline"></i>
|
||||
<span>Section</span>
|
||||
</a>
|
||||
<ul class="sub-menu" aria-expanded="false">
|
||||
<li><a href="{{route('section.index')}}">list section</a></li>
|
||||
<li><a href="{{ route('section.create') }}">create section</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="javascript:%20void(0);" class="has-arrow waves-effect">
|
||||
<i class="mdi mdi-account-circle-outline"></i>
|
||||
<span>Part</span>
|
||||
</a>
|
||||
<ul class="sub-menu" aria-expanded="false">
|
||||
<li><a href="{{route('part.index')}}">list part</a></li>
|
||||
<li><a href="{{ route('part.create') }}">create part</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="javascript:%20void(0);" class="has-arrow waves-effect">
|
||||
<i class="mdi mdi-account-circle-outline"></i>
|
||||
<span>Gate</span>
|
||||
</a>
|
||||
<ul class="sub-menu" aria-expanded="false">
|
||||
<li><a href="{{route('gate.index')}}">list gate</a></li>
|
||||
<li><a href="{{ route('gate.create') }}">create gate</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="javascript:%20void(0);" class="has-arrow waves-effect">
|
||||
<i class="mdi mdi-account-circle-outline"></i>
|
||||
<span>Chapter</span>
|
||||
</a>
|
||||
<ul class="sub-menu" aria-expanded="false">
|
||||
<li><a href="{{route('chapter.index')}}">list chapter</a></li>
|
||||
<li><a href="{{ route('chapter.create') }}">create chapter</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="javascript:%20void(0);" class="has-arrow waves-effect">
|
||||
<i class="mdi mdi-account-circle-outline"></i>
|
||||
<span>Division</span>
|
||||
</a>
|
||||
<ul class="sub-menu" aria-expanded="false">
|
||||
<li><a href="{{route('division.index')}}">list division</a></li>
|
||||
<li><a href="{{ route('division.create') }}">create division</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="javascript:%20void(0);" class="has-arrow waves-effect">
|
||||
<i class="mdi mdi-account-circle-outline"></i>
|
||||
<span>Branch</span>
|
||||
</a>
|
||||
<ul class="sub-menu" aria-expanded="false">
|
||||
<li><a href="{{route('branch.index')}}">list branch</a></li>
|
||||
<li><a href="{{ route('branch.create') }}">create branch</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li>
|
||||
<a href="javascript:%20void(0);" class="has-arrow waves-effect">
|
||||
<i class="mdi mdi-account-circle-outline"></i>
|
||||
<span>کنترل ورژن</span>
|
||||
</a>
|
||||
<ul class="sub-menu" aria-expanded="false">
|
||||
<li><a href="{{route('versions.index')}}">لیست ورژن ها</a></li>
|
||||
<li><a href="{{ route('versions.create') }}">ایجاد ورژن جدید</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li>
|
||||
<a href="javascript:%20void(0);" class="has-arrow waves-effect">
|
||||
<i class="mdi mdi-account-circle-outline"></i>
|
||||
<span>پلن های اشتراک</span>
|
||||
</a>
|
||||
<ul class="sub-menu" aria-expanded="false">
|
||||
<li><a href="{{route('subscribe-plans.index')}}">لیست پلن ها</a></li>
|
||||
<li><a href="{{ route('subscribe-plans.create') }}">افزودن پلن جدید</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li>
|
||||
<a href="javascript:%20void(0);" class="has-arrow waves-effect">
|
||||
<i class="mdi mdi-bell-outline"></i>
|
||||
<span>اعلانها</span>
|
||||
</a>
|
||||
<ul class="sub-menu" aria-expanded="false">
|
||||
<li><a href="{{ route('notifications.index') }}">لیست اعلانها</a></li>
|
||||
<li><a href="{{ route('notifications.create') }}">افزودن اعلان</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="javascript:%20void(0);" class="has-arrow waves-effect">
|
||||
<i class="mdi mdi-gavel"></i>
|
||||
<span>آراء وحدت رویه</span>
|
||||
</a>
|
||||
<ul class="sub-menu" aria-expanded="false">
|
||||
<li><a href="{{ route('judicial-precedent.index') }}">لیست آراء</a></li>
|
||||
<li><a href="{{ route('judicial-precedent.create') }}">افزودن رأی جدید</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="javascript:%20void(0);" class="has-arrow waves-effect">
|
||||
<i class="mdi mdi-account-circle-outline"></i>
|
||||
<span>پیشنهادات</span>
|
||||
</a>
|
||||
<ul class="sub-menu" aria-expanded="false">
|
||||
<li><a href="{{route('suggestions.index')}}">پیشنهادات</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
6
resources/views/admin/partial/scripts.blade.php
Normal file
6
resources/views/admin/partial/scripts.blade.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<script src="/assets/libs/jquery/jquery.min.js"></script>
|
||||
<script src="/assets/libs/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="/assets/libs/metismenu/metisMenu.min.js"></script>
|
||||
<script src="/assets/libs/simplebar/simplebar.min.js"></script>
|
||||
<script src="/assets/js/pages/dashboard.init.js"></script>
|
||||
<script src="/assets/js/app.js"></script>
|
||||
5
resources/views/admin/partial/styles.blade.php
Normal file
5
resources/views/admin/partial/styles.blade.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<link rel="shortcut icon" href="/assets/images/favicon.ico">
|
||||
<link href="/assets/libs/admin-resources/jquery.vectormap/jquery-jvectormap-1.2.2.css" rel="stylesheet" type="text/css">
|
||||
<link href="/assets/css/bootstrap.min.css" id="bootstrap-style" rel="stylesheet" type="text/css">
|
||||
<link href="/assets/css/icons.css" rel="stylesheet" type="text/css">
|
||||
<link href="/assets/css/app.css" id="app-style" rel="stylesheet" type="text/css">
|
||||
71
resources/views/admin/section/create.blade.php
Normal file
71
resources/views/admin/section/create.blade.php
Normal file
@@ -0,0 +1,71 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@include('admin.layouts.errors')
|
||||
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">افزودن فصل</h4>
|
||||
<div>
|
||||
<form action="{{ route('section.store') }}" method="post">
|
||||
@csrf
|
||||
<div class="mb-4">
|
||||
<label for="">تایتیل را وارد کنید</label>
|
||||
<input class="form-control" name="title" type="text" placeholder="نام">
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<label for="">عدد را وارد کنید</label>
|
||||
<input class="form-control" name="number" type="number" placeholder="تعداد">
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<label for="book_id">کتاب</label>
|
||||
<select class="form-control" name="book_id" id="book_id">
|
||||
@foreach ($books as $book)
|
||||
<option value="{{$book->id}}">{{$book->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">volum</label>
|
||||
<select class="form-control" name="volum_id" id="volum_id">
|
||||
<option value="">without</option>
|
||||
|
||||
@foreach ($volums as $volum)
|
||||
<option value="{{$volum->id}}">{{$volum->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="division_id">Division</label>
|
||||
<select class="form-control" name="division_id" id="division_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($divisions as $division)
|
||||
<option value="{{$division->id}}">{{$division->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="law_id">law</label>
|
||||
<select class="form-control" name="law_id" id="law_id">
|
||||
<option value="">without</option>
|
||||
|
||||
@foreach ($laws as $law)
|
||||
<option value="{{$law->id}}">{{$law->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<button class="btn btn-primary" type="submit">ثبت</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
48
resources/views/admin/section/index.blade.php
Normal file
48
resources/views/admin/section/index.blade.php
Normal file
@@ -0,0 +1,48 @@
|
||||
@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' => 'section.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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($sections as $section)
|
||||
<tr>
|
||||
<td>{{ $section->title }}</td>
|
||||
<td>{{ $section->number }}</td>
|
||||
<td>
|
||||
<form action="{{ route('section.destroy', $section->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('section.edit',$section->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">
|
||||
{{ $sections->withQueryString()->links() }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
70
resources/views/admin/section/update.blade.php
Normal file
70
resources/views/admin/section/update.blade.php
Normal file
@@ -0,0 +1,70 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@include('admin.layouts.errors')
|
||||
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">ویرایش فصل</h4>
|
||||
<div>
|
||||
<form action="{{ route('section.update',$section->id) }}" method="post">
|
||||
@csrf
|
||||
@method('put')
|
||||
<div class="mb-4">
|
||||
<label for="">تایتیل را وارد کنید</label>
|
||||
<input class="form-control" name="title" type="text" placeholder="نام" value="{{$section->title}}">
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="">عدد را وارد کنید</label>
|
||||
<input class="form-control" name="number" type="text" placeholder="تعداد" value="{{$section->number}}">
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<label for="book_id">book</label>
|
||||
<select class="form-control" name="book_id" id="book_id">
|
||||
@foreach ($books as $book)
|
||||
<option value="{{$book->id}}" {{ $book->id === $section->book_id ? 'selected' : '' }}>{{$book->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="division_id">Division</label>
|
||||
<select class="form-control" name="division_id" id="division_id">
|
||||
<option value="">بدون مقدار</option>
|
||||
@foreach ($divisions as $division)
|
||||
<option value="{{$division->id}}" {{ $division->id === $section->division_id ? 'selected' : '' }}>{{$division->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="volum_id">volum</label>
|
||||
<select class="form-control" name="volum_id" id="volum_id">
|
||||
<option value="">without</option>
|
||||
@foreach ($volums as $volum)
|
||||
<option value="{{$volum->id}}" {{ $volum->id === $section->volum_id ? 'selected' : '' }}>{{$volum->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="law_id">law</label>
|
||||
<select class="form-control" name="law_id" id="law_id">
|
||||
<option value="">without</option>
|
||||
@foreach ($laws as $law)
|
||||
<option value="{{$law->id}}" {{ $law->id === $section->law_id ? 'selected' : '' }}>{{$law->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-primary" type="submit">ثبت</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
58
resources/views/admin/subscribe-plans/create.blade.php
Normal file
58
resources/views/admin/subscribe-plans/create.blade.php
Normal file
@@ -0,0 +1,58 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@include('admin.layouts.errors')
|
||||
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">افزودن پلن</h4>
|
||||
<div>
|
||||
<form action="{{ route('subscribe-plans.store') }}" method="post">
|
||||
@csrf
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="">نام را وارد کنید</label>
|
||||
<input class="form-control" name="name" type="text" placeholder="نام">
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="">قیمت را وارد کنید</label>
|
||||
<input class="form-control" name="price" type="text" placeholder="قیمت">
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="">تعداد روز را وارد کنید</label>
|
||||
<input class="form-control" name="expired_day" type="text" placeholder="تعداد روز">
|
||||
</div>
|
||||
|
||||
<label for="">نوع ( تایپ)</label>
|
||||
<input class="form-control" name="type" type="text" placeholder="">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<label for="">شناسه</label>
|
||||
<input class="form-control" name="transaction" type="text" placeholder="">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="custom-control custom-switch mb-2" dir="ltr">
|
||||
<input type="checkbox" class="custom-control-input" id="customSwitch1" name="is_free" checked="">
|
||||
<label class="custom-control-label" for="customSwitch1">رایگان؟</label>
|
||||
</div>
|
||||
|
||||
<div class="custom-control custom-switch mb-2" dir="ltr">
|
||||
<input type="checkbox" class="custom-control-input" id="customSwitch1" name="is_active" checked="">
|
||||
<label class="custom-control-label" for="customSwitch1">قعال؟</label>
|
||||
</div>
|
||||
|
||||
|
||||
<button type="submit" class="btn btn-primary">ثبت</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
48
resources/views/admin/subscribe-plans/index.blade.php
Normal file
48
resources/views/admin/subscribe-plans/index.blade.php
Normal file
@@ -0,0 +1,48 @@
|
||||
@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' => 'subscribe-plans.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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($subscribePlans as $item)
|
||||
<tr>
|
||||
<td>{{ $item->name }}</td>
|
||||
<td>{{ $item->price }}</td>
|
||||
<td>
|
||||
<form action="{{ route('subscribe-plans.destroy', $item->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('subscribe-plans.edit',$item->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">
|
||||
{{ $subscribePlans->withQueryString()->links() }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
56
resources/views/admin/subscribe-plans/update.blade.php
Normal file
56
resources/views/admin/subscribe-plans/update.blade.php
Normal file
@@ -0,0 +1,56 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@include('admin.layouts.errors')
|
||||
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">ویرایش پلن</h4>
|
||||
<div>
|
||||
<form action="{{ route('subscribe-plans.update', $subscribePlan->id) }}" method="post">
|
||||
@csrf
|
||||
@method('PUT')
|
||||
<div class="mb-4">
|
||||
<label for="">نام را وارد کنید</label>
|
||||
<input class="form-control" name="name" type="text" value="{{ $subscribePlan->name }}">
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="">قیمت را وارد کنید</label>
|
||||
<input class="form-control" name="price" type="text" value="{{ $subscribePlan->price }}">
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="">تعداد روز را وارد کنید</label>
|
||||
<input class="form-control" name="expired_day" type="text" value="{{ $subscribePlan->expired_day }}">
|
||||
</div>
|
||||
|
||||
<div class="custom-control custom-switch mb-2" dir="ltr">
|
||||
<input type="checkbox" class="custom-control-input" id="customSwitch1" name="is_active" @if($subscribePlan->is_active) checked @endif>
|
||||
<label class="custom-control-label" for="customSwitch1">قعال؟</label>
|
||||
|
||||
<div class="custom-control custom-switch mb-2" dir="ltr">
|
||||
<input type="checkbox" class="custom-control-input" id="is_free" name="is_free" @if($subscribePlan->is_free) checked @endif>
|
||||
<label class="custom-control-label" for="is_free">رایگان؟</label>
|
||||
</div>
|
||||
|
||||
|
||||
<label for="">نوع ( تایپ)</label>
|
||||
<input class="form-control" name="type" type="text" placeholder="" value="{{ $subscribePlan->type }}">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<label for="">شناسه</label>
|
||||
<input class="form-control" name="transaction" type="text" placeholder="" value="{{ $subscribePlan->transaction }}">
|
||||
</div>
|
||||
|
||||
|
||||
<button type="submit" class="btn btn-primary">ثبت</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
39
resources/views/admin/suggestions/index.blade.php
Normal file
39
resources/views/admin/suggestions/index.blade.php
Normal file
@@ -0,0 +1,39 @@
|
||||
@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' => 'suggestions.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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($suggestions as $suggestion)
|
||||
<tr>
|
||||
<td>{{ $suggestion->user->mobile }}</td>
|
||||
<td>{{ $suggestion->text }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex justify-content-center mt-3">
|
||||
{{ $suggestions->withQueryString()->links() }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
33
resources/views/admin/users/create.blade.php
Normal file
33
resources/views/admin/users/create.blade.php
Normal file
@@ -0,0 +1,33 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@include('admin.layouts.errors')
|
||||
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">افزودن کاربر</h4>
|
||||
<div>
|
||||
<form action="{{ route('users.store') }}" method="post">
|
||||
@csrf
|
||||
<div class="mb-4">
|
||||
<input class="form-control" name="name" type="text" placeholder="نام">
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<input class="form-control" name="email" type="email" placeholder="ایمیل">
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<input class="form-control" name="mobile" type="text" placeholder="موبایل">
|
||||
</div>
|
||||
<div class="custom-control custom-switch mb-2" dir="ltr">
|
||||
<input type="checkbox" class="custom-control-input" id="customSwitch1" name="is_admin" checked="">
|
||||
<label class="custom-control-label" for="customSwitch1">ادمین</label>
|
||||
</div>
|
||||
<button class="btn btn-primary" type="submit">ثبت</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
56
resources/views/admin/users/index.blade.php
Normal file
56
resources/views/admin/users/index.blade.php
Normal file
@@ -0,0 +1,56 @@
|
||||
@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' => 'users.index', 'extraFilterView' => 'admin.users.partial-filter'])
|
||||
<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>
|
||||
<th>عملیات</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($users as $user)
|
||||
<tr>
|
||||
<td>{{ $user->name }}</td>
|
||||
<td>{{ $user->email }}</td>
|
||||
<td>{{ $user->mobile }}</td>
|
||||
<td>{{ $user->is_admin ? 'ادمین' : 'مشتری' }}</td>
|
||||
<td>
|
||||
{{ $user->userSubscribers->sum(function ($subscriber) { return $subscriber->expired_at ? $subscriber->expired_at->diffInDays(now()) : 0; }) }}
|
||||
</td>
|
||||
<td>
|
||||
<form action="{{ route('users.destroy', $user->id) }}" id="user-{{$user->id}}-delete" 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('users.edit',$user->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">
|
||||
{{ $users->withQueryString()->links() }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
6
resources/views/admin/users/partial-filter.blade.php
Normal file
6
resources/views/admin/users/partial-filter.blade.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<label class="form-label">نوع کاربر</label>
|
||||
<select name="type" class="form-select">
|
||||
<option value="">همه</option>
|
||||
<option value="1" {{ request('type') === '1' ? 'selected' : '' }}>ادمین</option>
|
||||
<option value="0" {{ request('type') === '0' ? 'selected' : '' }}>مشتری</option>
|
||||
</select>
|
||||
34
resources/views/admin/users/update.blade.php
Normal file
34
resources/views/admin/users/update.blade.php
Normal file
@@ -0,0 +1,34 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@include('admin.layouts.errors')
|
||||
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">ویرایش کاربر</h4>
|
||||
<div>
|
||||
<form action="{{ route('users.update',$user->id) }}" method="post">
|
||||
@csrf
|
||||
@method('put')
|
||||
<div class="mb-4">
|
||||
<input class="form-control" name="name" type="text" placeholder="نام" value="{{$user->name}}">
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<input class="form-control" name="email" type="email" placeholder="ایمیل" value="{{$user->email}}">
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<input class="form-control" name="mobile" type="text" placeholder="موبایل" value="{{$user->mobile}}">
|
||||
</div>
|
||||
<div class="custom-control custom-switch mb-2" dir="ltr">
|
||||
<input type="checkbox" class="custom-control-input" id="customSwitch1" name="is_admin" {{ $user->is_admin ? 'checked="true"' :'' }}">
|
||||
<label class="custom-control-label" for="customSwitch1">ادمین</label>
|
||||
</div>
|
||||
<button class="btn btn-primary" type="submit">ثبت</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
55
resources/views/admin/versions/create.blade.php
Normal file
55
resources/views/admin/versions/create.blade.php
Normal file
@@ -0,0 +1,55 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@include('admin.layouts.errors')
|
||||
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">افزودن روژن جدید</h4>
|
||||
<div>
|
||||
<form action="{{ route('versions.store') }}" method="post">
|
||||
@csrf
|
||||
<div class="mb-4">
|
||||
<label for="">کد را وارد کنید</label>
|
||||
<input class="form-control" name="code" type="text" placeholder="کد">
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="">شماره را وارد کنید</label>
|
||||
<input class="form-control" name="number" type="number" placeholder="شماره">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="">توضیح را وارد کنید</label>
|
||||
<textarea class="form-control" name="log" id="log" cols="30" rows="10"></textarea>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="">تایپ را انتخاب کنید</label>
|
||||
<select name="type" class="form-control" id="">
|
||||
<option value="android">اندروید</option>
|
||||
<option value="ios">IOS</option>
|
||||
<option value="web">وب</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="">اپدیت این نسخه اجباری است؟</label>
|
||||
<input name="force_update" type="checkbox">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<button class="btn btn-primary" type="submit">ثبت</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
50
resources/views/admin/versions/index.blade.php
Normal file
50
resources/views/admin/versions/index.blade.php
Normal 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' => 'versions.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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($versions as $version)
|
||||
<tr>
|
||||
<td>{{ $version->code }}</td>
|
||||
<td>{{ $version->number }}</td>
|
||||
<td>{{ $version->type }}</td>
|
||||
<td>
|
||||
<form action="{{ route('versions.destroy', $version->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('versions.edit',$version->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">
|
||||
{{ $versions->withQueryString()->links() }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
52
resources/views/admin/versions/update.blade.php
Normal file
52
resources/views/admin/versions/update.blade.php
Normal file
@@ -0,0 +1,52 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@include('admin.layouts.errors')
|
||||
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">ویرایش ماده</h4>
|
||||
<div>
|
||||
<form action="{{ route('versions.update',$version->id) }}" method="post">
|
||||
@csrf
|
||||
@method('put')
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="">کد را وارد کنید</label>
|
||||
<input class="form-control" name="code" type="text" placeholder="کد" value="{{ $version->code }}">
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="">شماره را وارد کنید</label>
|
||||
<input class="form-control" name="number" type="number" placeholder="شماره" value="{{ $version->number }}">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="">توضیح را وارد کنید</label>
|
||||
<textarea class="form-control" name="log" id="log" cols="30" rows="10">{{ $version->log }}</textarea>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="">تایپ را انتخاب کنید</label>
|
||||
<select name="type" class="form-control" id="">
|
||||
<option value="android" {{ request()->input('type') == 'android' ? 'selected' : '' }}>اندروید</option>
|
||||
<option value="ios" {{ request()->input('type') == 'ios' ? 'selected' : '' }}>IOS</option>
|
||||
<option value="web" {{ request()->input('type') == 'web' ? 'selected' : '' }}>وب</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="">اپدیت این نسخه اجباری است؟</label>
|
||||
<input name="force_update" type="checkbox" {{ $version->force_update ?? 'checked' }}>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-primary" type="submit">ثبت</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
35
resources/views/admin/volum/create.blade.php
Normal file
35
resources/views/admin/volum/create.blade.php
Normal file
@@ -0,0 +1,35 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@include('admin.layouts.errors')
|
||||
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">افزودن جلد</h4>
|
||||
<div>
|
||||
<form action="{{ route('volum.store') }}" method="post">
|
||||
@csrf
|
||||
<div class="mb-4">
|
||||
<label for="">تایتیل را وارد کنید</label>
|
||||
<input class="form-control" name="title" type="text" placeholder="نام">
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<label for="">عدد را وارد کنید</label>
|
||||
<input class="form-control" name="number" type="number" placeholder="تعداد">
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<select class="form-control" name="law_id" id="law_id">
|
||||
@foreach ($laws as $law)
|
||||
<option value="{{$law->id}}">{{$law->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<button class="btn btn-primary" type="submit">ثبت</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
48
resources/views/admin/volum/index.blade.php
Normal file
48
resources/views/admin/volum/index.blade.php
Normal file
@@ -0,0 +1,48 @@
|
||||
@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' => 'volum.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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($volums as $volum)
|
||||
<tr>
|
||||
<td>{{ $volum->title }}</td>
|
||||
<td>{{ $volum->number }}</td>
|
||||
<td>
|
||||
<form action="{{ route('volum.destroy', $volum->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('volum.edit',$volum->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">
|
||||
{{ $volums->withQueryString()->links() }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
38
resources/views/admin/volum/update.blade.php
Normal file
38
resources/views/admin/volum/update.blade.php
Normal file
@@ -0,0 +1,38 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@include('admin.layouts.errors')
|
||||
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">ویرایش ماده</h4>
|
||||
<div>
|
||||
<form action="{{ route('volum.update',$volum->id) }}" method="post">
|
||||
@csrf
|
||||
@method('put')
|
||||
<div class="mb-4">
|
||||
<label for="">تایتیل را وارد کنید</label>
|
||||
<input class="form-control" name="title" type="text" placeholder="نام" value="{{$volum->title}}">
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="">عدد را وارد کنید</label>
|
||||
<input class="form-control" name="number" type="text" placeholder="تعداد" value="{{$volum->number}}">
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<select class="form-control" name="law_id" id="law_id">
|
||||
@foreach ($laws as $law)
|
||||
<option value="{{$law->id}}" {{ $law->id === $volum->law_id ? 'selected' : '' }}>{{$law->title}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<button class="btn btn-primary" type="submit">ثبت</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
28
resources/views/auth/confirm-password.blade.php
Normal file
28
resources/views/auth/confirm-password.blade.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<x-guest-layout>
|
||||
<x-authentication-card>
|
||||
<x-slot name="logo">
|
||||
<x-authentication-card-logo />
|
||||
</x-slot>
|
||||
|
||||
<div class="mb-4 text-sm text-gray-600">
|
||||
{{ __('This is a secure area of the application. Please confirm your password before continuing.') }}
|
||||
</div>
|
||||
|
||||
<x-validation-errors class="mb-4" />
|
||||
|
||||
<form method="POST" action="{{ route('password.confirm') }}">
|
||||
@csrf
|
||||
|
||||
<div>
|
||||
<x-label for="password" value="{{ __('Password') }}" />
|
||||
<x-input id="password" class="block mt-1 w-full" type="password" name="password" required autocomplete="current-password" autofocus />
|
||||
</div>
|
||||
|
||||
<div class="flex justify-end mt-4">
|
||||
<x-button class="ms-4">
|
||||
{{ __('Confirm') }}
|
||||
</x-button>
|
||||
</div>
|
||||
</form>
|
||||
</x-authentication-card>
|
||||
</x-guest-layout>
|
||||
86
resources/views/auth/login.blade.php
Normal file
86
resources/views/auth/login.blade.php
Normal file
@@ -0,0 +1,86 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fa" dir="rtl">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>ورود</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta content="Premium Multipurpose Admin & Dashboard Template" name="description">
|
||||
<meta content="Themesbrand" name="author">
|
||||
<link rel="shortcut icon" href="assets/images/favicon.ico">
|
||||
|
||||
<link href="/assets/css/bootstrap.min.css" id="bootstrap-style" rel="stylesheet" type="text/css">
|
||||
<link href="/assets/css/icons.css" rel="stylesheet" type="text/css">
|
||||
<link href="/assets/css/app.css" id="app-style" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="home-btn d-none d-sm-block">
|
||||
<a href="index.html" class="text-dark"><i class="fas fa-home h2"></i></a>
|
||||
</div>
|
||||
<div class="account-pages my-5 pt-sm-5">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8 col-lg-6 col-xl-5">
|
||||
<div class="card overflow-hidden">
|
||||
<div class="bg-login text-center">
|
||||
<div class="bg-login-overlay"></div>
|
||||
<div class="position-relative">
|
||||
<h5 class="text-white font-size-20">خوش آمدید!</h5>
|
||||
<p class="text-white-50 mb-0">جهت دسترسی به پنل مدیریت وارد شوید</p>
|
||||
<a href="index.html" class="logo logo-admin mt-4">
|
||||
<img src="assets/images/logo-sm-dark.png" alt="" height="30">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body pt-5">
|
||||
<div class="p-2">
|
||||
<form class="form-horizontal" method="POST" action="{{ route('login') }}">
|
||||
@csrf
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="username">ایمیل</label>
|
||||
<input type="text" class="form-control" id="username" type="email" name="email" :value="old('email')" required autofocus autocomplete="username" placeholder="ایمیل را وارد کنید">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="password">رمز عبور</label>
|
||||
<input class="form-control" id="password" type="password" name="password" required autocomplete="current-password" placeholder="رمز را وارد کنید">
|
||||
</div>
|
||||
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox" class="custom-control-input" id="customControlInline">
|
||||
<label class="custom-control-label" for="customControlInline">به خاطر سپاری</label>
|
||||
</div>
|
||||
|
||||
<div class="mt-3">
|
||||
<button class="btn btn-primary btn-block waves-effect waves-light" type="submit">ورود</button>
|
||||
</div>
|
||||
|
||||
<div class="mt-4 text-center">
|
||||
<a href="pages-recoverpw.html" class="text-muted"><i class="mdi mdi-lock mr-1"></i> رمز عبور خود را فراموش کرده اید؟</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-5 text-center">
|
||||
<p>طراحی شده با <i class="mdi mdi-heart text-danger"></i></p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="/assets/libs/jquery/jquery.min.js"></script>
|
||||
<script src="/assets/libs/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="/assets/libs/metismenu/metisMenu.min.js"></script>
|
||||
<script src="/assets/libs/simplebar/simplebar.min.js"></script>
|
||||
<script src="/assets/libs/node-waves/waves.min.js"></script>
|
||||
<script src="/assets/js/app.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
36
resources/views/auth/reset-password.blade.php
Normal file
36
resources/views/auth/reset-password.blade.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<x-guest-layout>
|
||||
<x-authentication-card>
|
||||
<x-slot name="logo">
|
||||
<x-authentication-card-logo />
|
||||
</x-slot>
|
||||
|
||||
<x-validation-errors class="mb-4" />
|
||||
|
||||
<form method="POST" action="{{ route('password.update') }}">
|
||||
@csrf
|
||||
|
||||
<input type="hidden" name="token" value="{{ $request->route('token') }}">
|
||||
|
||||
<div class="block">
|
||||
<x-label for="email" value="{{ __('Email') }}" />
|
||||
<x-input id="email" class="block mt-1 w-full" type="email" name="email" :value="old('email', $request->email)" required autofocus autocomplete="username" />
|
||||
</div>
|
||||
|
||||
<div class="mt-4">
|
||||
<x-label for="password" value="{{ __('Password') }}" />
|
||||
<x-input id="password" class="block mt-1 w-full" type="password" name="password" required autocomplete="new-password" />
|
||||
</div>
|
||||
|
||||
<div class="mt-4">
|
||||
<x-label for="password_confirmation" value="{{ __('Confirm Password') }}" />
|
||||
<x-input id="password_confirmation" class="block mt-1 w-full" type="password" name="password_confirmation" required autocomplete="new-password" />
|
||||
</div>
|
||||
|
||||
<div class="flex items-center justify-end mt-4">
|
||||
<x-button>
|
||||
{{ __('Reset Password') }}
|
||||
</x-button>
|
||||
</div>
|
||||
</form>
|
||||
</x-authentication-card>
|
||||
</x-guest-layout>
|
||||
15
resources/views/dashboard.blade.php
Normal file
15
resources/views/dashboard.blade.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<x-app-layout>
|
||||
<x-slot name="header">
|
||||
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
|
||||
{{ __('Dashboard') }}
|
||||
</h2>
|
||||
</x-slot>
|
||||
|
||||
<div class="py-12">
|
||||
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
|
||||
<div class="bg-white overflow-hidden shadow-xl sm:rounded-lg">
|
||||
<x-welcome />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</x-app-layout>
|
||||
55
resources/views/fail_payment.blade.php
Normal file
55
resources/views/fail_payment.blade.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fa">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>پرداخت ناموفق</title>
|
||||
<style>
|
||||
body {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100vh;
|
||||
margin: 0;
|
||||
background-color: #f4f4f4;
|
||||
font-family: Arial, sans-serif;
|
||||
}
|
||||
|
||||
.container {
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
background-color: #ffffff;
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #f44336;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 10px 20px;
|
||||
font-size: 16px;
|
||||
color: #ffffff;
|
||||
background-color: #f44336;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.3s;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background-color: #e53935;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>پرداخت ناموفق بود</h1>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
45
resources/views/layouts/app.blade.php
Normal file
45
resources/views/layouts/app.blade.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
|
||||
<title>{{ config('app.name', 'Laravel') }}</title>
|
||||
|
||||
<!-- Fonts -->
|
||||
<link rel="preconnect" href="https://fonts.bunny.net">
|
||||
<link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" />
|
||||
|
||||
<!-- Scripts -->
|
||||
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
||||
|
||||
<!-- Styles -->
|
||||
@livewireStyles
|
||||
</head>
|
||||
<body class="font-sans antialiased">
|
||||
<x-banner />
|
||||
|
||||
<div class="min-h-screen bg-gray-100">
|
||||
@livewire('navigation-menu')
|
||||
|
||||
<!-- Page Heading -->
|
||||
@if (isset($header))
|
||||
<header class="bg-white shadow">
|
||||
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
|
||||
{{ $header }}
|
||||
</div>
|
||||
</header>
|
||||
@endif
|
||||
|
||||
<!-- Page Content -->
|
||||
<main>
|
||||
{{ $slot }}
|
||||
</main>
|
||||
</div>
|
||||
|
||||
@stack('modals')
|
||||
|
||||
@livewireScripts
|
||||
</body>
|
||||
</html>
|
||||
27
resources/views/layouts/guest.blade.php
Normal file
27
resources/views/layouts/guest.blade.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
|
||||
<title>{{ config('app.name', 'Laravel') }}</title>
|
||||
|
||||
<!-- Fonts -->
|
||||
<link rel="preconnect" href="https://fonts.bunny.net">
|
||||
<link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" />
|
||||
|
||||
<!-- Scripts -->
|
||||
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
||||
|
||||
<!-- Styles -->
|
||||
@livewireStyles
|
||||
</head>
|
||||
<body>
|
||||
<div class="font-sans text-gray-900 antialiased">
|
||||
{{ $slot }}
|
||||
</div>
|
||||
|
||||
@livewireScripts
|
||||
</body>
|
||||
</html>
|
||||
219
resources/views/navigation-menu.blade.php
Normal file
219
resources/views/navigation-menu.blade.php
Normal file
@@ -0,0 +1,219 @@
|
||||
<nav x-data="{ open: false }" class="bg-white border-b border-gray-100">
|
||||
<!-- Primary Navigation Menu -->
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div class="flex justify-between h-16">
|
||||
<div class="flex">
|
||||
<!-- Logo -->
|
||||
<div class="shrink-0 flex items-center">
|
||||
<a href="{{ route('dashboard') }}">
|
||||
<x-application-mark class="block h-9 w-auto" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- Navigation Links -->
|
||||
<div class="hidden space-x-8 sm:-my-px sm:ms-10 sm:flex">
|
||||
<x-nav-link href="{{ route('dashboard') }}" :active="request()->routeIs('dashboard')">
|
||||
{{ __('Dashboard') }}
|
||||
</x-nav-link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="hidden sm:flex sm:items-center sm:ms-6">
|
||||
<!-- Teams Dropdown -->
|
||||
@if (Laravel\Jetstream\Jetstream::hasTeamFeatures())
|
||||
<div class="ms-3 relative">
|
||||
<x-dropdown align="right" width="60">
|
||||
<x-slot name="trigger">
|
||||
<span class="inline-flex rounded-md">
|
||||
<button type="button" class="inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium rounded-md text-gray-500 bg-white hover:text-gray-700 focus:outline-none focus:bg-gray-50 active:bg-gray-50 transition ease-in-out duration-150">
|
||||
{{ Auth::user()->currentTeam->name }}
|
||||
|
||||
<svg class="ms-2 -me-0.5 h-4 w-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" />
|
||||
</svg>
|
||||
</button>
|
||||
</span>
|
||||
</x-slot>
|
||||
|
||||
<x-slot name="content">
|
||||
<div class="w-60">
|
||||
<!-- Team Management -->
|
||||
<div class="block px-4 py-2 text-xs text-gray-400">
|
||||
{{ __('Manage Team') }}
|
||||
</div>
|
||||
|
||||
<!-- Team Settings -->
|
||||
<x-dropdown-link href="{{ route('teams.show', Auth::user()->currentTeam->id) }}">
|
||||
{{ __('Team Settings') }}
|
||||
</x-dropdown-link>
|
||||
|
||||
@can('create', Laravel\Jetstream\Jetstream::newTeamModel())
|
||||
<x-dropdown-link href="{{ route('teams.create') }}">
|
||||
{{ __('Create New Team') }}
|
||||
</x-dropdown-link>
|
||||
@endcan
|
||||
|
||||
<!-- Team Switcher -->
|
||||
@if (Auth::user()->allTeams()->count() > 1)
|
||||
<div class="border-t border-gray-200"></div>
|
||||
|
||||
<div class="block px-4 py-2 text-xs text-gray-400">
|
||||
{{ __('Switch Teams') }}
|
||||
</div>
|
||||
|
||||
@foreach (Auth::user()->allTeams() as $team)
|
||||
<x-switchable-team :team="$team" />
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
</x-slot>
|
||||
</x-dropdown>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<!-- Settings Dropdown -->
|
||||
<div class="ms-3 relative">
|
||||
<x-dropdown align="right" width="48">
|
||||
<x-slot name="trigger">
|
||||
@if (Laravel\Jetstream\Jetstream::managesProfilePhotos())
|
||||
<button class="flex text-sm border-2 border-transparent rounded-full focus:outline-none focus:border-gray-300 transition">
|
||||
<img class="h-8 w-8 rounded-full object-cover" src="{{ Auth::user()->profile_photo_url }}" alt="{{ Auth::user()->name }}" />
|
||||
</button>
|
||||
@else
|
||||
<span class="inline-flex rounded-md">
|
||||
<button type="button" class="inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium rounded-md text-gray-500 bg-white hover:text-gray-700 focus:outline-none focus:bg-gray-50 active:bg-gray-50 transition ease-in-out duration-150">
|
||||
{{ Auth::user()->name }}
|
||||
|
||||
<svg class="ms-2 -me-0.5 h-4 w-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5" />
|
||||
</svg>
|
||||
</button>
|
||||
</span>
|
||||
@endif
|
||||
</x-slot>
|
||||
|
||||
<x-slot name="content">
|
||||
<!-- Account Management -->
|
||||
<div class="block px-4 py-2 text-xs text-gray-400">
|
||||
{{ __('Manage Account') }}
|
||||
</div>
|
||||
|
||||
<x-dropdown-link href="{{ route('profile.show') }}">
|
||||
{{ __('Profile') }}
|
||||
</x-dropdown-link>
|
||||
|
||||
@if (Laravel\Jetstream\Jetstream::hasApiFeatures())
|
||||
<x-dropdown-link href="{{ route('api-tokens.index') }}">
|
||||
{{ __('API Tokens') }}
|
||||
</x-dropdown-link>
|
||||
@endif
|
||||
|
||||
<div class="border-t border-gray-200"></div>
|
||||
|
||||
<!-- Authentication -->
|
||||
<form method="POST" action="{{ route('logout') }}" x-data>
|
||||
@csrf
|
||||
|
||||
<x-dropdown-link href="{{ route('logout') }}"
|
||||
@click.prevent="$root.submit();">
|
||||
{{ __('Log Out') }}
|
||||
</x-dropdown-link>
|
||||
</form>
|
||||
</x-slot>
|
||||
</x-dropdown>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Hamburger -->
|
||||
<div class="-me-2 flex items-center sm:hidden">
|
||||
<button @click="open = ! open" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 focus:text-gray-500 transition duration-150 ease-in-out">
|
||||
<svg class="h-6 w-6" stroke="currentColor" fill="none" viewBox="0 0 24 24">
|
||||
<path :class="{'hidden': open, 'inline-flex': ! open }" class="inline-flex" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
|
||||
<path :class="{'hidden': ! open, 'inline-flex': open }" class="hidden" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Responsive Navigation Menu -->
|
||||
<div :class="{'block': open, 'hidden': ! open}" class="hidden sm:hidden">
|
||||
<div class="pt-2 pb-3 space-y-1">
|
||||
<x-responsive-nav-link href="{{ route('dashboard') }}" :active="request()->routeIs('dashboard')">
|
||||
{{ __('Dashboard') }}
|
||||
</x-responsive-nav-link>
|
||||
</div>
|
||||
|
||||
<!-- Responsive Settings Options -->
|
||||
<div class="pt-4 pb-1 border-t border-gray-200">
|
||||
<div class="flex items-center px-4">
|
||||
@if (Laravel\Jetstream\Jetstream::managesProfilePhotos())
|
||||
<div class="shrink-0 me-3">
|
||||
<img class="h-10 w-10 rounded-full object-cover" src="{{ Auth::user()->profile_photo_url }}" alt="{{ Auth::user()->name }}" />
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div>
|
||||
<div class="font-medium text-base text-gray-800">{{ Auth::user()->name }}</div>
|
||||
<div class="font-medium text-sm text-gray-500">{{ Auth::user()->email }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt-3 space-y-1">
|
||||
<!-- Account Management -->
|
||||
<x-responsive-nav-link href="{{ route('profile.show') }}" :active="request()->routeIs('profile.show')">
|
||||
{{ __('Profile') }}
|
||||
</x-responsive-nav-link>
|
||||
|
||||
@if (Laravel\Jetstream\Jetstream::hasApiFeatures())
|
||||
<x-responsive-nav-link href="{{ route('api-tokens.index') }}" :active="request()->routeIs('api-tokens.index')">
|
||||
{{ __('API Tokens') }}
|
||||
</x-responsive-nav-link>
|
||||
@endif
|
||||
|
||||
<!-- Authentication -->
|
||||
<form method="POST" action="{{ route('logout') }}" x-data>
|
||||
@csrf
|
||||
|
||||
<x-responsive-nav-link href="{{ route('logout') }}"
|
||||
@click.prevent="$root.submit();">
|
||||
{{ __('Log Out') }}
|
||||
</x-responsive-nav-link>
|
||||
</form>
|
||||
|
||||
<!-- Team Management -->
|
||||
@if (Laravel\Jetstream\Jetstream::hasTeamFeatures())
|
||||
<div class="border-t border-gray-200"></div>
|
||||
|
||||
<div class="block px-4 py-2 text-xs text-gray-400">
|
||||
{{ __('Manage Team') }}
|
||||
</div>
|
||||
|
||||
<!-- Team Settings -->
|
||||
<x-responsive-nav-link href="{{ route('teams.show', Auth::user()->currentTeam->id) }}" :active="request()->routeIs('teams.show')">
|
||||
{{ __('Team Settings') }}
|
||||
</x-responsive-nav-link>
|
||||
|
||||
@can('create', Laravel\Jetstream\Jetstream::newTeamModel())
|
||||
<x-responsive-nav-link href="{{ route('teams.create') }}" :active="request()->routeIs('teams.create')">
|
||||
{{ __('Create New Team') }}
|
||||
</x-responsive-nav-link>
|
||||
@endcan
|
||||
|
||||
<!-- Team Switcher -->
|
||||
@if (Auth::user()->allTeams()->count() > 1)
|
||||
<div class="border-t border-gray-200"></div>
|
||||
|
||||
<div class="block px-4 py-2 text-xs text-gray-400">
|
||||
{{ __('Switch Teams') }}
|
||||
</div>
|
||||
|
||||
@foreach (Auth::user()->allTeams() as $team)
|
||||
<x-switchable-team :team="$team" component="responsive-nav-link" />
|
||||
@endforeach
|
||||
@endif
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
56
resources/views/payment.blade.php
Normal file
56
resources/views/payment.blade.php
Normal file
@@ -0,0 +1,56 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fa">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>پرداخت موفق</title>
|
||||
<style>
|
||||
body {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100vh;
|
||||
margin: 0;
|
||||
background-color: #f4f4f4;
|
||||
font-family: Arial, sans-serif;
|
||||
}
|
||||
|
||||
.container {
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
background-color: #ffffff;
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #4CAF50;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 10px 20px;
|
||||
font-size: 16px;
|
||||
color: #ffffff;
|
||||
background-color: #4CAF50;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.3s;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background-color: #45a049;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>پرداخت با موفقیت انجام شد</h1>
|
||||
<span>لطفا به اپلیکیشن برگردید</span>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
133
resources/views/welcome.blade.php
Normal file
133
resources/views/welcome.blade.php
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user