Fixed routing and backend to staff section

This commit is contained in:
Anders
2020-06-29 12:29:23 +02:00
parent 97af5273be
commit 600bbe7746
4 changed files with 67 additions and 23 deletions
@@ -25,9 +25,9 @@
<td>{{ $staff->name_last }}</td>
<td>{{ $staff->email }}</td>
<td>{{ $staff->phone }}</td>
<td><a href="{{ route("users.edit", [ "staff" => $staff->id ]) }}"><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
<td><a href="{{ route("staff.edit", [ "staff" => $staff->id ]) }}"><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
<td>
<form method="post" action="{{ route("users.destroy", [ "staff" => $staff ]) }}" class="w-100">
<form method="post" action="{{ route("staff.destroy", [ "staff" => $staff ]) }}" class="w-100">
@csrf
@method("delete")
@@ -38,5 +38,5 @@
@endforeach
</table>
{{ $staff->links() }}
{{ $staffs->links() }}
@endsection