@extends("admin.layout.base") @extends("admin.layout.header") @section("title") Vaskemaskiner - Vis @endsection @section("path") Vis Vaskemaskiner / @endsection @section("content")
@if(auth()->user()->can('washing.machine.create')) CreateOpret Vaskemaskine @endif @if(auth()->user()->can('locations.create')) CreateOpret Vaskemaskine lokation @endif
@if(auth()->user()->can('washing.machine.edit')) @endif @if(auth()->user()->can('washing.machine.delete')) @endif @foreach($machines as $machine) @if(auth()->user()->can('washing.machine.edit')) @endif @if(auth()->user()->can('washing.machine.delete')) @endif @endforeach
Navn LokationUpdateDelete
{{$machine->name}} {{\App\Location::query()->where("id", "=", $machine->location_id)->first()->name}}Update
@csrf @method("delete")
@if(auth()->user()->can('locations.edit')) @endif @if(auth()->user()->can('locations.delete')) @endif @foreach(\App\Location::query()->get() as $location) @if(auth()->user()->can('locations.edit')) @endif @if(auth()->user()->can('locations.delete')) @endif @endforeach
Navn ShowUpdateDelete
{{$location->name}} $location ]) }}">Show $location ]) }}">Update
$location ]) }}" class="w-100 nostyle"> @csrf @method("delete")
@endsection