Merge remote-tracking branch 'upstream-local/clean-main' into clean-main
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
@extends('admin.layouts.app')
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
@@ -12,7 +12,9 @@
|
||||
<thead>
|
||||
<tr role="row">
|
||||
<th>نام پلن</th>
|
||||
<th>نوع (Type)</th>
|
||||
<th>قیمت</th>
|
||||
<th>وضعیت</th>
|
||||
<th>عملیات</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -20,12 +22,20 @@
|
||||
@foreach ($subscribePlans as $item)
|
||||
<tr>
|
||||
<td>{{ $item->name }}</td>
|
||||
<td>{{ $item->price }}</td>
|
||||
<td><span class="badge badge-info">{{ $item->type ?? 'ندارد' }}</span></td>
|
||||
<td>{{ number_format($item->price) }} تومان</td>
|
||||
<td>
|
||||
@if($item->is_active)
|
||||
<span class="badge badge-success">فعال</span>
|
||||
@else
|
||||
<span class="badge badge-danger">غیرفعال</span>
|
||||
@endif
|
||||
</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>
|
||||
<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>
|
||||
@@ -44,5 +54,5 @@
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -55,7 +55,9 @@
|
||||
<select name="subscribe_plan_id" id="subscribe_plan_id" class="form-control" required>
|
||||
<option value="">یک پلن انتخاب کنید...</option>
|
||||
@foreach($paidPlans as $plan)
|
||||
<option value="{{ $plan->id }}">{{ $plan->name }} ({{ number_format($plan->price) }} تومان)</option>
|
||||
<option value="{{ $plan->id }}">
|
||||
{{ $plan->name }} | نوع: {{ $plan->type ?? 'ندارد' }} | ({{ number_format($plan->price) }} تومان)
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user