add budgets
This commit is contained in:
@@ -106,6 +106,7 @@
|
||||
<tbody>
|
||||
@php
|
||||
use App\Helpers\NextCloudHelper;
|
||||
$role = auth()->user()->getRoleNames()[0];
|
||||
@endphp
|
||||
@foreach ($forms as $item)
|
||||
<tr>
|
||||
@@ -193,13 +194,13 @@
|
||||
</a>
|
||||
@endif
|
||||
|
||||
@if (auth()->user()->can('forms.meeting.edit'))
|
||||
@if (($role != 'Medical Representatif' && auth()->user()->can('forms.meeting.edit')) || ($role == 'Medical Representatif' && $item->status == 'On Progress'))
|
||||
<a href="{{ route('forms.meeting.edit', $item->id) }}" class="btn btn-warning btn-sm">
|
||||
<i class="fas fa-edit text-white"></i>
|
||||
</a>
|
||||
@endif
|
||||
|
||||
@if (auth()->user()->can('forms.meeting.delete'))
|
||||
@if (($role != 'Medical Representatif' && auth()->user()->can('forms.meeting.delete')) || ($role == 'Medical Representatif' && $item->status == 'On Progress'))
|
||||
<form action="{{ route('forms.meeting.destroy', $item->id) }}" method="POST" class="d-inline" onsubmit="return confirm('Are you sure you want to delete this item?');">
|
||||
@csrf
|
||||
@method('DELETE')
|
||||
|
||||
Reference in New Issue
Block a user