Merge remote-tracking branch 'origin/master'

This commit is contained in:
Anders 2020-06-29 12:29:30 +02:00
commit 91a34f3d08
4 changed files with 20 additions and 5 deletions

View File

@ -88,13 +88,11 @@ class ContactController extends Controller
{
$data = $request->all();
//FORCED UPDATE
$contact = Contact::find($id);
$contact->update($data);
$contact->save();
return Response::detect("contacts.update", [ "contact" => $contact ]);
return Response::detect("contacts.update", [ "contacts" => $contact ]);
}
/**

View File

@ -0,0 +1,14 @@
@extends("admin.layout.base")
@extends("admin.layout.header")
@section("title")
Kontakter - Opret
@endsection
@section("path")
<a href="" class="text-white">Slet Kontakt</a> /
@endsection
@section("content")
Din kontakt blev slettet
@endsection

View File

@ -26,7 +26,7 @@
<td>{{ $contact->email }}</td>
<td>{{ $contact->phone }}</td>
<td><a href="{{ route("contacts.edit", [ "contact" => $contact ]) }}"><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
<td><a href="{{ route("contacts.delete", [ "contact" => $contact ]) }}"><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td>
<td><a href="{{ route("contacts.destroy", [ "contact" => $contact ]) }}"><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td>
</tr>
@endforeach
</table>

View File

@ -21,11 +21,14 @@
{{--@extends("app.washing-reservations.index")--}}
{{--Menuplan--}}
{{----}}@extends("app.menuplans.index")
{{--@extends("app.menuplans.index")--}}
{{--Contact--}}
{{--@extends("app.contact.index")--}}
{{--Account--}}
{{----}}@extends("app.users.index")
{{----}}
{{------Admin Panel
{{----}}