@if($currentParent)
@php
$upUrl = route('subjects.index');
if ($currentParent->parent_id) {
$upUrl .= '?parent_id=' . $currentParent->parent_id;
}
@endphp
{{ $currentParent->name }}
{{ __('Back') }}
@endif
| {{ __('Code') }} |
{{ __('Name') }} |
{{ __('Parent') }} |
{{ __('Type') }} |
{{ __('Permanent/Temporary') }} |
{{ __('Created at') }} |
{{ __('Action') }} |
@foreach ($subjects as $subject)
|
{{ $subject->formattedCode() }}
|
{{ $subject->name }}
@if ($subject->subjectable)
@endif
|
{{ $subject->parent ? $subject->parent->name : __('Main') }} |
{{ $subject->type ? __(ucfirst($subject->type)) : '-' }} |
{{ $subject->is_permanent ? __('Permanent') : __('Temporary') }} |
{{ $subject->created_at ? formatDate($subject->created_at) : '-' }} |
@if ($subject->subjectable)
{{ __('Edit') }}
{{ __('Delete') }}
@else
{{ __('Edit') }}
@endif
|
@endforeach