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>
|
||||
@@ -201,13 +202,13 @@
|
||||
</a>
|
||||
@endif
|
||||
|
||||
@if (auth()->user()->can('forms.entertainment.edit'))
|
||||
@if (($role != 'Medical Representatif' && auth()->user()->can('forms.entertainment.edit')) || ($role == 'Medical Representatif' && $item->status == 'On Progress'))
|
||||
<a href="{{ route('forms.entertainment.edit', $item->id) }}" class="btn btn-warning btn-sm">
|
||||
<i class="fas fa-edit text-white"></i>
|
||||
</a>
|
||||
@endif
|
||||
|
||||
@if (auth()->user()->can('forms.entertainment.delete'))
|
||||
@if (($role != 'Medical Representatif' && auth()->user()->can('forms.entertainment.delete')) || ($role == 'Medical Representatif' && $item->status == 'On Progress'))
|
||||
<form action="{{ route('forms.entertainment.destroy', $item->id) }}" method="POST" class="d-inline" onsubmit="return confirm('Are you sure you want to delete this item?');">
|
||||
@csrf
|
||||
@method('DELETE')
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -104,6 +104,7 @@
|
||||
<tbody style="width: 100%">
|
||||
@php
|
||||
use App\Helpers\NextCloudHelper;
|
||||
$role = auth()->user()->getRoleNames()[0];
|
||||
@endphp
|
||||
@foreach ($forms as $item)
|
||||
<tr>
|
||||
@@ -197,13 +198,13 @@
|
||||
</a>
|
||||
@endif
|
||||
|
||||
@if (auth()->user()->can('forms.other.edit'))
|
||||
@if (($role != 'Medical Representatif' && auth()->user()->can('forms.other.edit')) || ($role == 'Medical Representatif' && $item->status == 'On Progress'))
|
||||
<a href="{{ route('forms.other.edit', $item->id) }}" class="btn btn-warning btn-sm">
|
||||
<i class="fas fa-edit text-white"></i>
|
||||
</a>
|
||||
@endif
|
||||
|
||||
@if (auth()->user()->can('forms.other.delete'))
|
||||
@if (($role != 'Medical Representatif' && auth()->user()->can('forms.other.delete')) || ($role == 'Medical Representatif' && $item->status == 'On Progress'))
|
||||
<form action="{{ route('forms.other.destroy', $item->id) }}" method="POST" class="d-inline" onsubmit="return confirm('Are you sure you want to delete this item?');">
|
||||
@csrf
|
||||
@method('DELETE')
|
||||
|
||||
@@ -106,6 +106,7 @@
|
||||
<tbody>
|
||||
@php
|
||||
use App\Helpers\NextCloudHelper;
|
||||
$role = auth()->user()->getRoleNames()[0];
|
||||
@endphp
|
||||
@foreach ($forms as $item)
|
||||
<tr>
|
||||
@@ -199,13 +200,13 @@
|
||||
</a>
|
||||
@endif
|
||||
|
||||
@if (auth()->user()->can('forms.country.edit'))
|
||||
@if (($role != 'Medical Representatif' && auth()->user()->can('forms.country.edit')) || ($role == 'Medical Representatif' && $item->status == 'On Progress'))
|
||||
<a href="{{ route('forms.up-country.edit', $item->id) }}" class="btn btn-warning btn-sm">
|
||||
<i class="fas fa-edit text-white"></i>
|
||||
</a>
|
||||
@endif
|
||||
|
||||
@if (auth()->user()->can('forms.country.delete'))
|
||||
@if (($role != 'Medical Representatif' && auth()->user()->can('forms.country.delete')) || ($role == 'Medical Representatif' && $item->status == 'On Progress'))
|
||||
<form action="{{ route('forms.up-country.destroy', $item->id) }}" method="POST" class="d-inline" onsubmit="return confirm('Are you sure you want to delete this item?');">
|
||||
@csrf
|
||||
@method('DELETE')
|
||||
|
||||
@@ -107,6 +107,7 @@
|
||||
<tbody>
|
||||
@php
|
||||
use App\Helpers\NextCloudHelper;
|
||||
$role = auth()->user()->getRoleNames()[0];
|
||||
@endphp
|
||||
@foreach ($forms as $item)
|
||||
<tr>
|
||||
@@ -203,13 +204,13 @@
|
||||
</a>
|
||||
@endif
|
||||
|
||||
@if (auth()->user()->can('forms.vehicle.edit'))
|
||||
@if (($role != 'Medical Representatif' && auth()->user()->can('forms.vehicle.edit')) || ($role == 'Medical Representatif' && $item->status == 'On Progress'))
|
||||
<a href="{{ route('forms.vehicle.edit', $item->id) }}" class="btn btn-warning btn-sm">
|
||||
<i class="fas fa-edit text-white"></i>
|
||||
</a>
|
||||
@endif
|
||||
|
||||
@if (auth()->user()->can('forms.vehicle.delete'))
|
||||
@if (($role != 'Medical Representatif' && auth()->user()->can('forms.vehicle.delete')) || ($role == 'Medical Representatif' && $item->status == 'On Progress'))
|
||||
<form action="{{ route('forms.vehicle.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