@extends('layouts.main') @section('title', $notebook->name . ' — Deel HR Notebooks') @section('content')
All Notebooks

{{ $notebook->name }}

{{ $notebook->workspace->name ?? '—' }}
@if($notebook->status === 'paused') @else @endif
{{-- Config card --}}
Configuration
Status
{{ $notebook->status_label }}
Load Type
{{ $notebook->load_type }}
Entities
@foreach($notebook->entities ?? [] as $ent) {{ $ent }} @endforeach
Lookback Days
{{ $notebook->incremental_lookback_days }}
Fabric Notebook ID
{{ Str::limit($notebook->fabric_notebook_id, 18) }}
@if($notebook->last_run_at)
Last Run
{{ $notebook->last_run_at->diffForHumans() }}
@endif
Created
{{ $notebook->created_at->format('d M Y') }}
@if($notebook->schedule_config)
Schedule
@php $sched = $notebook->schedule_config; @endphp
Frequency: {{ ucfirst($sched['frequency'] ?? '—') }}
Time: {{ $sched['time'] ?? '—' }} {{ $sched['timezone'] ?? 'UTC' }}
@if(!empty($sched['days']))
Days: {{ implode(', ', array_map('ucfirst', $sched['days'])) }}
@endif
@endif
{{-- Run history --}}
Run History
@if($notebook->syncHistory->isEmpty())

No runs yet.

@else
@foreach($notebook->syncHistory as $run) @endforeach
Started Type Status Records Duration
{{ $run->started_at ? $run->started_at->format('d M H:i') : '—' }} {{ ucfirst($run->run_type) }} @switch($run->status) @case('success') Success @break @case('partial_success') Partial @break @case('failed') Failed @break @default {{ ucfirst($run->status) }} @endswitch {{ number_format($run->total_records_processed) }} {{ $run->duration_seconds ? $run->duration_seconds . 's' : '—' }}
@endif
@endsection @section('scripts') @endsection