@extends('layouts.app') @section('title', 'Edit Template: ' . $workflowTemplate->name) @section('content')
Edit Template: {{ $workflowTemplate->name }}
@csrf @method('PUT')
Basic Information
@error('name')
{{ $message }}
@enderror
{{ strlen($workflowTemplate->description) }}/500
Click the smile to pick an emoji
status === 'active' ? 'checked' : '' }}>
{{ ucfirst($workflowTemplate->status) }}
@if(str_starts_with($workflowTemplate->icon ?: '', 'fa-')) @else {{ $workflowTemplate->icon ?: '📋' }} @endif
{{ $workflowTemplate->name }}
{{ $workflowTemplate->workflows->count() }} Workflows {{ $workflowTemplate->outlets_count ?? 0 }} Outlets
Workflows in Template
@forelse($workflowTemplate->workflows->sortBy('pivot.execution_order') as $index => $workflow) @php $categoryLabel = [ 'impulse' => 'Impulse', 'cooler' => 'Cooler', 'branding' => 'Branding', 'pouring_material' => 'Pouring Material' ][$workflow->category] ?? ucfirst($workflow->category); @endphp @empty @endforelse
Order Workflow Name Mandatory Action
@if(str_starts_with($workflow->icon, 'fa-')) @else {{ $workflow->icon }} @endif
{{ $workflow->name }}
{{ $categoryLabel }}
pivot->is_mandatory ? 'checked' : '' }}>

No workflows added yet

@endsection @push('js') @endpush @push('css') @endpush