@@ -44,87 +44,85 @@ class="form__text"
44
44
<div class =" data-table-wrapper" >
45
45
<table class =" data-table" >
46
46
<thead >
47
- <tr >
48
- <th >#</th >
49
- <th >{{ __ (' common.user' ) } } </th >
50
- <th >{{ __ (' common.email' ) } } </th >
51
- <th >{{ __ (' staff.application-type' ) } } </th >
52
- <th >{{ __ (' common.image' ) } } </th >
53
- <th >{{ __ (' staff.links' ) } } </th >
54
- <th >{{ __ (' common.created_at' ) } } </th >
55
- <th >{{ __ (' common.status' ) } } </th >
56
- <th >{{ __ (' common.moderated-by' ) } } </th >
57
- <th >{{ __ (' common.action' ) } } </th >
58
- </tr >
47
+ <tr >
48
+ <th >#</th >
49
+ <th >{{ __ (' common.user' ) } } </th >
50
+ <th >{{ __ (' common.email' ) } } </th >
51
+ <th >{{ __ (' staff.application-type' ) } } </th >
52
+ <th >{{ __ (' common.image' ) } } </th >
53
+ <th >{{ __ (' staff.links' ) } } </th >
54
+ <th >{{ __ (' common.created_at' ) } } </th >
55
+ <th >{{ __ (' common.status' ) } } </th >
56
+ <th >{{ __ (' common.moderated-by' ) } } </th >
57
+ <th >{{ __ (' common.action' ) } } </th >
58
+ </tr >
59
59
</thead >
60
60
<tbody >
61
- @forelse ($applications as $application )
62
- <tr >
63
- <td >{{ $application -> id } } </td >
64
- <td >
65
- @if ($application -> user === null )
66
- N/A
67
- @else
68
- <x-user _tag :anon =" false" :user =" $application->user" />
69
- @endif
70
- </td >
71
- <td >{{ $application -> email } } </td >
72
- <td >{{ $application -> type } } </td >
73
- <td >{{ $application -> imageProofs -> count () } } </td >
74
- <td >{{ $application -> urlProofs -> count () } } </td >
75
- <td >
76
- <time
77
- datetime =" {{ $application -> created_at } }"
78
- title =" {{ $application -> created_at } }"
79
- >
80
- {{ $application -> created_at -> diffForHumans () } }
81
- </time >
82
- </td >
83
- <td >
84
- @switch ($application -> status )
85
- @case (\App \Models \Application:: PENDING )
86
- <span class =" application--pending" >Pending</span >
61
+ @forelse ($applications as $application )
62
+ <tr >
63
+ <td >{{ $application -> id } } </td >
64
+ <td >
65
+ @if ($application -> user === null )
66
+ N/A
67
+ @else
68
+ <x-user _tag :anon =" false" :user =" $application->user" />
69
+ @endif
70
+ </td >
71
+ <td >{{ $application -> email } } </td >
72
+ <td >{{ $application -> type } } </td >
73
+ <td >{{ $application -> imageProofs -> count () } } </td >
74
+ <td >{{ $application -> urlProofs -> count () } } </td >
75
+ <td >
76
+ <time
77
+ datetime =" {{ $application -> created_at } }"
78
+ title =" {{ $application -> created_at } }"
79
+ >
80
+ {{ $application -> created_at -> diffForHumans () } }
81
+ </time >
82
+ </td >
83
+ <td >
84
+ @switch ($application -> status )
85
+ @case (\App \Models \Application:: PENDING )
86
+ <span class =" application--pending" >Pending</span >
87
87
88
- @break
89
- @case (\App \Models \Application:: APPROVED )
90
- <span class =" application--approved" >Approved</span >
88
+ @break
89
+ @case (\App \Models \Application:: APPROVED )
90
+ <span class =" application--approved" >Approved</span >
91
91
92
- @break
93
- @case (\App \Models \Application:: REJECTED )
94
- <span class =" application--rejected" >Rejected</span >
92
+ @break
93
+ @case (\App \Models \Application:: REJECTED )
94
+ <span class =" application--rejected" >Rejected</span >
95
95
96
- @break
97
- @default
98
- <span class =" application--unknown" >Unknown</span >
99
- @endswitch
100
- </td >
101
- <td >
102
- @if ($application -> moderated === null )
103
- N/A
104
- @else
105
- <x-user _tag :anon =" false" :user =" $application->moderated" />
106
- @endif
107
- </td >
108
- <td >
109
- <menu class =" data-table__actions" >
110
- <li class =" data-table__action" >
111
- <a
112
- class =" form__button form__button--text"
113
- href =" {{ route (' staff.applications.show' , [' id' => $application -> id ]) } }"
114
- >
115
- {{ __ (' common.view' ) } }
116
- </a >
117
- </li >
118
- </menu >
119
- </td >
120
- </tr >
121
- @empty
122
- <tr class =" applications--empty" >
123
- <td colspan =" 10" >
124
- {{ __ (' common.no' ) } } {{ __ (' staff.applications' ) } }
125
- </td >
126
- </tr >
127
- @endforelse
96
+ @break
97
+ @default
98
+ <span class =" application--unknown" >Unknown</span >
99
+ @endswitch
100
+ </td >
101
+ <td >
102
+ @if ($application -> moderated === null )
103
+ N/A
104
+ @else
105
+ <x-user _tag :anon =" false" :user =" $application->moderated" />
106
+ @endif
107
+ </td >
108
+ <td >
109
+ <menu class =" data-table__actions" >
110
+ <li class =" data-table__action" >
111
+ <a
112
+ class =" form__button form__button--text"
113
+ href =" {{ route (' staff.applications.show' , [' id' => $application -> id ]) } }"
114
+ >
115
+ {{ __ (' common.view' ) } }
116
+ </a >
117
+ </li >
118
+ </menu >
119
+ </td >
120
+ </tr >
121
+ @empty
122
+ <tr class =" applications--empty" >
123
+ <td colspan =" 10" >{{ __ (' common.no' ) } } {{ __ (' staff.applications' ) } } </td >
124
+ </tr >
125
+ @endforelse
128
126
</tbody >
129
127
</table >
130
128
</div >
0 commit comments