@extends('main') @section('css') @endsection @section('content')

Add Staff

@csrf
@if ($errors->has('gender')) {{ $errors->first('gender') }} @endif
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
@if ($errors->has('phone')) {{ $errors->first('phone') }} @endif

Staffs List

{{-- --}} @foreach ($vars['users'] as $row) {{-- --}} @endforeach
Name GenderEmail Phone Roles Action
{{ ucfirst($row->name) }} {{ ucfirst($row->gender) }}{{$row->email }}{{ $row->phone }} @foreach ($row->roles as $role) @if ($role->name == 'admin') {{ $role->display_name }} @else {{ $role->display_name }} @endif @endforeach
@if (Auth::user()->hasRole('admin') || Auth::user()->hasRole('board')) @endif
@include('users/_edit'); @endsection @section('js') @endsection