Init(Core): Change repo

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

View File

@@ -0,0 +1,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

View 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

View 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