@forelse ($soas as $soa)
{{ $soa->jobDraft->jobOrder->title }} |
{{ $soa->jobDraft->id }} |
{{ $soa->company }} |
@if (Auth::user()->role == 'accounting')
@endif
@if (Auth::user()->role == 'top_management')
@endif
@php
$editRoute = '';
if (Auth::user()->role == 'sales_assistant') {
$editRoute = route('admin.smm.soa.edit', $soa->id);
} elseif (Auth::user()->role == 'accounting') {
$editRoute = route('admin.smm.soa.edit_particulars', $soa->id);
}
@endphp
|
@empty
|
@endforelse