@extends('layouts.public_layout') @section('title', $title) @section('content')

{!! $page_name !!}


@if (strlen($msg) > 0) @endif @if ($errors->any()) @endif
@csrf
@error('code') {{ $errors->first('code') }} @enderror
@if ($row->for_creation == 1) New    @endif @if ($row->for_revision == 1) Revision    @endif @if ($row->for_deletion == 1) Deletion    @endif
{{--
for_creation) == 1) checked="checked" @endif>
@error('for_creation') {{ $errors->first('for_creation') }} @enderror
for_revision) == 1) checked="checked" @endif>
@error('for_revision') {{ $errors->first('for_revision') }} @enderror
for_deletion) == 1) checked="checked" @endif>
@error('for_deletion') {{ $errors->first('for_deletion') }} @enderror
--}}
@error('effectivity_date') {{ $errors->first('effectivity_date') }} @enderror
{{ $row->revision }}
{{--
@error('revision_no') {{ $errors->first('revision_no') }} @enderror
--}}
{{ $row->last_revision_status }}
{{ $row->revision_status }}
{{ $row->subject }}
@if (Auth::user()->is_admin == 1)
@error('fu_id') {{ $errors->first('fu_id') }} @enderror
@else
{{ ($row->fu_id == 0 ? Auth::user()->fu_name : $row->fu_name) }}
@endif
@error('reason') {{ $errors->first('reason') }} @enderror
@error('details') {{ $errors->first('details') }} @enderror

Documents

@error('file') {{ $errors->first('file') }} @enderror
@error('file.*') {{ $errors->first('file.*') }} @enderror
@if ($req < 3)
@error('page_count') {{ $errors->first('page_count') }} @enderror
@else
{{ $row->page_count }}
@endif
Document file
Select New or Revised documents here.
@if ($req < 3)
@else
@endif
@if (!empty($row->filename)) {{ $row->oldfilename }} @endif  
@error('docfile') {{ $errors->first('docfile') }} @enderror
@if ($row->ml_id > 0)
Document file with revisions marked.
Select document with revisions marked here.
@if ($req < 3)
@else
@endif
@if (!empty($row->rev_filename)) {{ $row->rev_oldfilename }} @endif  
@error('revfile') {{ $errors->first('revfile') }} @enderror
@endif
@error('remarks') {{ $errors->first('remarks') }} @enderror

@if (Auth::user()->is_admin == 1)
@error('preparedby') {{ $errors->first('preparedby') }} @enderror
@error('preparedby_date') {{ $errors->first('preparedby_date') }} @enderror
@else
{{ ($row->preparedby == 0 ? Auth::user()->full_name : $row->preparedby_name) }}
{{ ($row->preparedby_date == NULL ? date('m/d/Y H:i:s') : $row->preparedby_date) }}
@endif
@if (Auth::user()->is_admin == 1)
@error('approvedby') {{ $errors->first('approvedby') }} @enderror
@error('approvedby_date') {{ $errors->first('approvedby_date') }} @enderror
@else
{{ ($row->approvedby == 0 ? '' : $row->approvedby_name) }}
{{ $row->approvedby_date }}
@endif
@endsection