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

Upload Packet for Analysis

This packet will NOT be processed.

@error('file') {{ $message }} @else A file is required. @enderror
@if($errors->count())
There were errors with the submission.
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
Cancel
@if($result)

Packet Results

Packet {{ $file->getClientOriginalName() }} (type {{ $result->type }}) is from {{ $result->fftn }} to {{ $result->tftn }}, dated {{ $result->date }}.

This packet has {{ $result->messages->count() }} messages and {{ $result->password ? 'DOES' : 'does NOT' }} have a password.

Tosser: {{ $result->software->code }} ({{ $result->software->name }}), version {{ $result->software_ver }}. Capabilities: {{ $result->capability }}.

@if ($result->messages->count() > 1)

You can expand each one

@endif
@foreach ($result as $msg)
@if ($msg->errors) @foreach ($msg->errors->messages()->all() as $error)
{{ $error }}
@endforeach @endif
DATE: {{ $msg->date }}
FLAGS: {{ $msg->flags()->filter()->keys()->join(', ') }}
FROM: {{ $msg->user_from }} ({{ $msg->fftn }})
TO: {{ $msg->user_to }} ({{ $msg->tftn }})
SUBJECT: {!! \App\Classes\FTN\Message::tr($msg->subject) !!}
{!! \App\Classes\FTN\Message::tr($msg->message).sprintf("\r * Origin: %s",$msg->origin) !!}
@if($msg->isNetmail())
VIA:
{!! $msg->via->join('
') !!}
@else
SEENBY:
{!! $msg->seenby->join('
') !!}
PATH:
{!! $msg->path->join('
') !!}
@endif
KLUDGES:
@foreach ($msg->kludge->sort(function($v,$k) { return $k; })->reverse() as $k => $v) {{ $k }} {{ $v }}
@endforeach
@endforeach
{{ $hexdump }}
@endif @endsection