37 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			PHP
		
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			PHP
		
	
	
	
| <x-page::setting-layout :active="$settingClass">
 | |
|     <x-slot:toolbar>
 | |
|         <x-ui::badge wire:click.prevent="$dispatch('openModal', {component: 'modules.fileshare.components.form', props: {}, title: 'Neue Verbindung'})" icon="plus">Neue Verbindung</x-ui::badge>
 | |
|     </x-slot:toolbar>
 | |
|     <div>
 | |
|         <x-ui::table>
 | |
|             <thead>
 | |
|                 <th>Bezeichnung</th>
 | |
|                 <th>Typ</th>
 | |
|                 <th>Prüfung</th>
 | |
|                 <th>Aktion</th>
 | |
|             </thead>
 | |
| 
 | |
|             @foreach ($data as $index => $share)
 | |
|             <tr wire:key="$index">
 | |
|                 <td>{{ $share->name }}</td>
 | |
|                 <td>{{ $share->type::title() }}</td>
 | |
|                 <td>
 | |
|                     <x-ui::boolean-display :value="$share->type->check()"
 | |
|                         hint="Verbindungsstatus"
 | |
|                         right="Verbindung erfolgreich"
 | |
|                         wrong="Verbindung fehlgeschlagen"
 | |
|                     ></x-ui::boolean-display>
 | |
|                 </td>
 | |
|                 <td>
 | |
|                     <x-ui::action wire:click="$dispatch('openModal', {
 | |
|                         component: 'modules.fileshare.components.form',
 | |
|                         props: {id: '{{$share->id}}'},
 | |
|                         title: 'Verbindung {{$share->name}} bearbeiten'}
 | |
|                     )" icon="pencil" variant="warning">Bearbeiten</x-ui::action>
 | |
|                 </td>
 | |
|             </tr>
 | |
|             @endforeach
 | |
|         </x-ui::table>
 | |
|     </div>
 | |
| </x-page::setting-layout>
 |