@extends('admin/layouts/default') {{-- Page title --}} @section('title') Create New staffrequest @parent @stop {{-- Page content --}} @section('content')

ICT Support Request

ICT Support Requests

{{-- Bootstrap Nav Tabs --}}
{{-- ==================== NEW REQUEST TAB ==================== --}}
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @php $email = Sentinel::getUser()->email; $employee11 = DB::table('dmuemployee2s')->where('email', $email)->first(); if ($employee11) { $firstname = $employee11->firstname; $lastname = $employee11->lastname; $phone = $employee11->phone; $idno = $employee11->idnumber; $college = $employee11->college; $department = $employee11->department; $buildingno = $employee11->buildingno; $office = $employee11->officeno; } @endphp {!! Form::open(['url' => 'directoraterole/directoraterequest', 'id' => 'staffRequestForm']) !!} {{-- Hidden fields --}} {!! Form::hidden('firstname', $firstname ?? '') !!} {!! Form::hidden('lastname', $lastname ?? '') !!} {!! Form::hidden('phone', $phone ?? '') !!} {!! Form::hidden('email', $email ?? '') !!} {!! Form::hidden('idnumber', $idno ?? '') !!} {!! Form::hidden('college', $college ?? '') !!} {!! Form::hidden('department', $department ?? '') !!} {!! Form::hidden('buildingno', $buildingno ?? '') !!} {!! Form::hidden('office', $office ?? '') !!} {{-- Request Category --}}
{!! Form::label('requestcategory', 'Request Category: ') !!} {!! Form::select('requestcategory', [ '' => 'Select a category', 'maintenance' => 'Electronics Maintenance', 'network' => 'Network Related Request', 'systemadmin' => 'System Admin', 'tltechnology' => 'Teaching Learning Request', ], null, ['class' => 'form-control', 'id' => 'requestcategory']) !!}
{{-- Subcategory --}} {{-- Description --}}
{!! Form::label('description', 'Description: ') !!} {!! Form::textarea('description', null, ['class' => 'form-control']) !!}
{!! Form::hidden('date', date('Y-m-d H:i:s')) !!}
@lang('button.cancel')
{!! Form::close() !!}
{{-- ==================== OTHERS’ REQUESTS TAB ==================== --}}

Requests from Other Staff Members

@php $currentEmail = Sentinel::getUser()->email; $otherRequests = DB::table('staffrequests') ->where('email', '!=', $currentEmail) ->orderBy('date', 'desc') ->get(); @endphp @forelse ($otherRequests as $index => $req) @empty @endforelse
# Staff Name Category Subcategory Description Date Status
{{ $index + 1 }} {{ $req->firstname }} {{ $req->lastname }} {{ ucfirst($req->requestcategory) }} {{ $req->subcategory ?? '-' }} {{ $req->description }} {{ \Carbon\Carbon::parse($req->date)->format('Y-m-d H:i') }} {{ ucfirst($req->status ?? 'Pending') }}
No other requests found.
{{-- /tab-content --}}
{{-- Success Modal --}} @stop