2022-12-08 09:30:07 +01:00
|
|
|
@extends('main.layout')
|
2022-11-23 09:32:34 +01:00
|
|
|
|
|
|
|
@section('content')
|
2022-12-08 09:30:07 +01:00
|
|
|
@if (session('status'))
|
|
|
|
<div class="alert alert-success" role="alert">
|
|
|
|
{{ session('status') }}
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
<h1>{{ __('Dashboard') }}</h1>
|
|
|
|
<hr/>
|
2022-11-23 09:32:34 +01:00
|
|
|
|
2022-12-08 09:30:07 +01:00
|
|
|
@if(Auth::user()->atleast('employee'))
|
|
|
|
<a href="/manage" class="button">Management Panel</a>
|
|
|
|
<hr/>
|
|
|
|
@endif
|
2022-11-23 09:32:34 +01:00
|
|
|
|
2023-02-02 08:17:38 +01:00
|
|
|
<h2>Orders</h2>
|
|
|
|
<hr/>
|
|
|
|
<x-orders :orders="Auth()->user()->orders" />
|
|
|
|
|
2022-12-08 09:30:07 +01:00
|
|
|
<h2>Permissions</h2>
|
|
|
|
<hr/>
|
|
|
|
|
|
|
|
<ul class="numbered">
|
|
|
|
@foreach(Auth::user()->permissions as $permission)
|
|
|
|
<li>{{ $permission->permission_name }}</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
2022-11-23 09:32:34 +01:00
|
|
|
@endsection
|