Fixed routing and backend to staff section
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user