@extends('layouts.app') @section('title', 'Workflows') @section('content')
Workflows
@can('HoReCa Workflows create') @endcan @can('HoReCa Workflows delete') @endcan

Clear
@forelse($workflows as $workflow) @empty @endforelse
Workflow Name Category Steps Templates Status Actions
@if(str_starts_with($workflow->icon ?? '', 'fa-')) @else {{ $workflow->icon ?? '🔄' }} @endif
{{ $workflow->name }} @if($workflow->description)
{{ Str::limit($workflow->description, 50) }} @endif
{{ ucfirst(str_replace('_', ' ', $workflow->category)) }} {{ $workflow->steps_count }} steps {{ $workflow->templates_count }}
status === 'active' ? 'checked' : '' }}>
@can('HoReCa Workflows update') @endcan @can('HoReCa Workflows delete') @if($workflow->templates_count === 0) @endif @endcan
No workflows found.
@if ($workflows->total() > 0)
Showing {{ $paginationDetails['firstItem'] }} to {{ $paginationDetails['lastItem'] }} of {{ $paginationDetails['total'] }} entries
@endif
{{ $workflows->appends(request()->query())->links() }}
@endsection @push('js') @endpush