new forms added for courses

This commit is contained in:
HolgerHatGarKeineNode
2023-02-27 18:37:23 +01:00
parent d1d0d5ce3d
commit ce972e66c6
28 changed files with 612 additions and 49 deletions

View File

@@ -1,5 +1,23 @@
<div>
<x-button amber wire:click="courseSearch({{ $row->id }})">
{{ __('Show dates') }}
</x-button>
<div class="flex flex-col space-y-1">
@if($row->course_events_count > 0)
<div>
<x-button xs amber wire:click="courseSearch({{ $row->id }})">
{{ __('Show dates') }} [{{ $row->course_events_count }}]
</x-button>
</div>
@else
<div>
<x-button xs outline wire:click="courseSearch({{ $row->id }})">
{{ __('Show dates') }}
</x-button>
</div>
@endif
@can('update', $row)
<div>
<x-button amber xs :href="route('course.form.course', ['course' => $row])">
<i class="fa fa-thin fa-edit"></i>
{{ __('Edit') }}
</x-buttonamber>
</div>
@endcan
</div>