@extends('layouts.app') @section('title', 'Database Migration Manager') @section('content')

Database Migration Manager Administrator Only

{{-- ═══════════════════════════════════════ --}} {{-- STATS CARDS --}} {{-- ═══════════════════════════════════════ --}}
Total Migrations {{ $stats['total'] }}
Ran {{ $stats['ran'] }}
Pending {{ $stats['pending'] }}
Latest Batch {{ $stats['batches'] ?? '—' }}
{{-- ═══════════════════════════════════════ --}} {{-- ACTION BAR --}} {{-- ═══════════════════════════════════════ --}}

 Migration Actions

Runs php artisan migrate --force

Runs selected migration files.

Rolls back last N batch(es). Use with care!

Re-scan files and DB without running anything.

{{-- ═══════════════════════════════════════ --}} {{-- OUTPUT CONSOLE --}} {{-- ═══════════════════════════════════════ --}} {{-- ═══════════════════════════════════════ --}} {{-- MIGRATION TABLE --}} {{-- ═══════════════════════════════════════ --}}

All Migrations

@foreach($migrations as $i => $mig) @endforeach
# Migration Name Module / Source Batch Status Action
@if(!$mig['ran']) @else @endif {{ $i + 1 }} {{ $mig['display'] }}
{{ $mig['name'] }}
@if($mig['source'] === 'Core') Core @else {{ $mig['source'] }} @endif
{{ $mig['date_parsed'] }}
@if($mig['ran']) Batch {{ $mig['batch'] }} @else @endif @if($mig['ran']) Ran @else Pending @endif @if(!$mig['ran']) @else Done @endif
{{-- ═══════════════════════════════════════ --}} {{-- ROLLBACK DANGER MODAL --}} {{-- ═══════════════════════════════════════ --}}
@endsection @section('javascript') @endsection