@extends('layouts.user') @section('content') Create you file here! Create File @csrf @if(str_contains(url()->current(), '/send-file-form')) @elseif(str_contains(url()->current(), '/send-letter-form')) @elseif(str_contains(url()->current(), '/send-summary-form')) @endif Received No. from department: Received from department: @php $getdeplist = DB::table('odepartments')->get(); @endphp @foreach ($getdeplist as $deplist) {{$deplist->name}} @endforeach Law department section No. : Title of document Noting Area Drafting Area Section assigned to: @php $getseclist = DB::table('departments')->get(); @endphp @foreach ($getseclist as $seclist) {{$seclist->name}} @endforeach File send for further proceeding: @if(Auth::user()->jobtitle == 'SC') @php $getuser = DB::table('users')->where('jobtitle', 'SO')->get(); @endphp None @foreach ($getuser as $getus) @php $getdept = DB::table('departments')->where('id', $getus->department_id)->first(); @endphp {{ Str::of($getus->name)->limit(110)->upper() }} SO @if(isset($getdept->name))- {{$getdept->name}} @endif @endforeach @else Select Member None @endif @foreach ($users as $user) @php $getdep = DB::table('departments')->where('id', $user->department_id)->first(); @endphp {{ Str::of($user->name)->limit(110)->upper() }} ({{$user->jobtitle}}) @if(isset($getdep->name)) - {{$getdep->name}} @endif @endforeach Attachments + Add More Submit @if(empty($getfileshare)) @else @endif @endsection
Create you file here!