@extends('layouts.app') @section('content')

All Patents

Department @if(auth()->user()->role_id == 1) {{-- Admin: can choose any department --}} @else {{-- Coordinator/Faculty: department is fixed --}} @endif
Status
Date Range to
@php use Illuminate\Support\Str; $labels = [ 'Faculty', 'Department', 'Title', 'Investigator', 'Application No', 'Type', 'Date Of Submission', 'Date Of Filling', 'Status', ]; $columns = []; foreach ($labels as $i => $label) { $columns[] = [ 'label' => $label, 'id' => 'column-' . Str::slug($label, '-'), 'value' => $i + 2, 'checked' => $label !== 'Date Of Filling', ]; } @endphp
ID Faculty Department Title Investigator Application No Type Date Of Submission Date Of Filling Status Actions
@endsection @section('scripts') @endsection