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

{{ $notebook->name }}

{{ $notebook->workspace->name ?? '—' }}
@if($notebook->status === 'paused') @else @endif
{{-- Configuration card --}}
Configuration
Status
{{ $notebook->status_label }}
Source Table
{{ $notebook->source_table_name }}
Vena Template ID
{{ $notebook->vena_template_id }}
Transfer Mode
{{ $notebook->transfer_mode === 'data_array' ? 'Data Array' : 'CSV File' }}
Include Headers
{{ $notebook->include_headers ? 'Yes' : 'No' }}
@if($notebook->filter_expression)
Filter
{{ $notebook->filter_expression }}
@endif
Fabric Notebook ID
{{ Str::limit($notebook->fabric_notebook_id, 18) }}
@if($notebook->last_run_at)
Last Run
{{ $notebook->last_run_at->diffForHumans() }} @if($notebook->last_rows_sent !== null) ({{ number_format($notebook->last_rows_sent) }} rows) @endif
@endif
Created
{{ $notebook->created_at->format('d M Y') }}
{{-- Vena connection card --}} @if($notebook->venaConnection)
Vena Connection
Name: {{ $notebook->venaConnection->name }}
Hub: {{ $notebook->venaConnection->vena_hub }}
@endif {{-- Column mapping card --}} @if(!empty($notebook->column_mapping))
Column Mapping
@foreach($notebook->column_mapping as $src => $dst) @endforeach
Lakehouse Column Vena Column
{{ $src }} {{ $dst }}
@endif {{-- Schedule card --}} @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) @if($run->error_message) @endif @endforeach
Started Type Status Rows Duration
{{ $run->started_at ? $run->started_at->format('d M H:i') : '—' }} {{ ucfirst($run->run_type) }} @switch($run->status) @case('success') Success @break @case('failed') Failed @break @default {{ ucfirst($run->status) }} @endswitch @if($run->rows_sent !== null) {{ number_format($run->rows_sent) }} @else — @endif {{ $run->duration_seconds ? $run->duration_seconds . 's' : '—' }}
{{ $run->error_message }}
@endif
@endsection @section('scripts') @endsection