@extends('layouts.app') @section('content')

Scrape Tweets

@if (session('status'))
{{ session('status') }}
@endif
@csrf
@error('keyword')
{{ $message }}
@enderror
@error('limit')
{{ $message }}
@enderror
@error('token')
{{ $message }}
@enderror
@php $fn = session('csv_filename'); $filePath = public_path("tweets-data/{$fn}"); $url = $fn && file_exists($filePath) ? asset("tweets-data/{$fn}") : null; @endphp @if ($url) Download CSV @endif
@endsection @push('scripts') @endpush