@extends('layouts.master') @section('title', 'Work Flow Add/Edit') @section('style') @endsection @section('script') @endsection @section('content') @include('layouts.header') @include('layouts.title') @if(session('error'))
{{ session('error') }}
@endif
@yield('title')
{{ csrf_field() }}
{{-- ===================================== --}} {{-- Workflow Name --}} {{-- ===================================== --}}
Module: Administrative Position = Arrangement, Teaching Load = TeachingLoad
@php $steps = isset($wf_steps) && count($wf_steps) > 0 ? $wf_steps : collect([null]); @endphp @foreach($steps as $step) @php $positionType = $step->wf_position_type ?? 'FACULTY'; $positionId = $step->wf_position_id ?? null; $stepType = $step->wf_step_type ?? 'APPROVAL'; $actorScope = $step->wf_actor_scope ?? 'GLOBAL'; $canEdit = intval( $step->wf_can_edit ?? 0 ); $returnOrder = $step->wf_return_order ?? null; $rejectOrder = $step->wf_reject_order ?? null; @endphp
{{ $loop->iteration }} Workflow Step
{{-- Actor Type --}}
{{-- Faculty --}}
{{-- Role --}}
{{-- Main Position --}}
{{-- Sub Position --}}
{{-- Activity --}}
{{-- Step Type --}}
{{-- Scope --}}
{{-- Can Edit --}}
{{-- Return To --}}
ใช้ตอนส่งกลับเพื่อแก้ไข
{{-- Reject To --}}
เว้นว่าง = Reject จบ Flow
Return / Reject ต้องชี้กลับไป Step ก่อนหน้าเท่านั้น
@endforeach

* These fields are required.

@include('layouts.footer') @endsection