worked on event blade files.
This commit is contained in:
parent
0306717822
commit
7234304496
|
@ -95,17 +95,9 @@ class ContactController extends Controller
|
||||||
return Response::detect("contacts.update", [ "contacts" => $contact ]);
|
return Response::detect("contacts.update", [ "contacts" => $contact ]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Remove the specified resource from storage.
|
|
||||||
*
|
|
||||||
* @param int $id
|
|
||||||
* @return \Illuminate\Http\Response
|
|
||||||
*/
|
|
||||||
public function destroy($id)
|
|
||||||
{
|
|
||||||
|
|
||||||
$contact = Contact::find($id);
|
public function destroy(Contact $id)
|
||||||
$contact->delete();
|
{
|
||||||
return redirect()->route("contacts.index");
|
$id->delete();
|
||||||
}
|
return Response::detect("contacts.destroy");}
|
||||||
}
|
}
|
||||||
|
|
|
@ -102,10 +102,10 @@ class EventController extends Controller
|
||||||
* @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
* @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
*/
|
*/
|
||||||
public function destroy(Event $id)
|
public function destroy($id)
|
||||||
{
|
{
|
||||||
$id->delete();
|
$link = Event::find($id);
|
||||||
|
$link->delete();
|
||||||
return Response::detect("events.destroy");
|
return redirect()->route("events.index");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
@extends("admin.layout.header")
|
@extends("admin.layout.header")
|
||||||
|
|
||||||
@section("title")
|
@section("title")
|
||||||
Vaskemaskiner - Vis
|
Aktivitet - Vis
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section("path")
|
@section("path")
|
||||||
<a href="{{ route('events.create') }}" class="text-white">Opret Vaskemaskine</a> /
|
<a href="{{ route('events.create') }}" class="text-white">Opret Aktivitet</a> /
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section("content")
|
@section("content")
|
||||||
|
|
|
@ -2,30 +2,12 @@
|
||||||
@extends("admin.layout.header")
|
@extends("admin.layout.header")
|
||||||
|
|
||||||
@section("title")
|
@section("title")
|
||||||
Vaskemaskiner - Vis
|
Aktivitet - Fjern
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section("path")
|
@section("path")
|
||||||
<a href="" class="text-white">Vis Vaskemaskiner</a> /
|
<a href="{{ route('events.destroy') }}" class="text-white"> fjern aktivitet</a>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section("content")
|
@section("content")
|
||||||
<table class="tbl">
|
|
||||||
<tr>
|
|
||||||
<th>Fornavn</th>
|
|
||||||
<th>Efternavn</th>
|
|
||||||
<th>Email</th>
|
|
||||||
<th>Tlf nr</th>
|
|
||||||
<th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
|
|
||||||
<th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>{Fornavn}</td>
|
|
||||||
<td>{Efternavn}</td>
|
|
||||||
<td>{Email}</td>
|
|
||||||
<td>{TLF}</td>
|
|
||||||
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
|
|
||||||
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section("path")
|
@section("path")
|
||||||
<a href="{{ route("events.index") }}" class="text-white">Vis Events</a> /
|
<a href="" class="text-white">Vis Events</a> /
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section("content")
|
@section("content")
|
||||||
|
@ -15,9 +15,9 @@
|
||||||
@csrf
|
@csrf
|
||||||
@method("PUT")
|
@method("PUT")
|
||||||
<label for="title">Titel:</label>
|
<label for="title">Titel:</label>
|
||||||
<input value="{{$link->name}}" type="text" name="title" id="title" required>
|
<input value="{{$event->name}}" type="text" name="title" id="title" required>
|
||||||
<label for="link">Linket:</label>
|
<label for="link">Linket:</label>
|
||||||
<input value="{{$link->link}}" type="text" name="link" id="link" required>
|
<input value="{{$event->description}}" type="text" name="link" id="link" required>
|
||||||
<input type="submit" class="btn btn-dark text-white" value="Rediger">
|
<input type="submit" class="btn btn-dark text-white" value="Rediger">
|
||||||
</form>
|
</form>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
|
@ -6,26 +6,9 @@
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section("path")
|
@section("path")
|
||||||
<a href="" class="text-white">Vis Vaskemaskiner</a> /
|
<a href="{{ route('events.create') }}" class="text-white">Opret External Link</a> /
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section("content")
|
@section("content")
|
||||||
<table class="tbl">
|
Link blev (ikke) oprettet.
|
||||||
<tr>
|
|
||||||
<th>Fornavn</th>
|
|
||||||
<th>Efternavn</th>
|
|
||||||
<th>Email</th>
|
|
||||||
<th>Tlf nr</th>
|
|
||||||
<th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
|
|
||||||
<th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>{Fornavn}</td>
|
|
||||||
<td>{Efternavn}</td>
|
|
||||||
<td>{Email}</td>
|
|
||||||
<td>{TLF}</td>
|
|
||||||
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
|
|
||||||
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
|
@ -6,26 +6,9 @@
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section("path")
|
@section("path")
|
||||||
<a href="" class="text-white">Vis Vaskemaskiner</a> /
|
<a href="{{ route('events.edit', ["event" => $event]) }}" class="text-white">External link</a> /
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section("content")
|
@section("content")
|
||||||
<table class="tbl">
|
Din link blev (ikke) redigeret.
|
||||||
<tr>
|
|
||||||
<th>Fornavn</th>
|
|
||||||
<th>Efternavn</th>
|
|
||||||
<th>Email</th>
|
|
||||||
<th>Tlf nr</th>
|
|
||||||
<th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
|
|
||||||
<th style="width: 1px;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>{Fornavn}</td>
|
|
||||||
<td>{Efternavn}</td>
|
|
||||||
<td>{Email}</td>
|
|
||||||
<td>{TLF}</td>
|
|
||||||
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
|
|
||||||
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
Loading…
Reference in New Issue