@php use App\Models\Netmail; use App\Classes\FTN\Message; @endphp @extends('layouts.app') @section('htmlheader_title') Verify Packet @endsection @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($results->count())

Archive Results: {{ $filename }}

@foreach($results as $item) @foreach ($item as $file => $result)

Packet {{ $file }} (type {{ $result->type }}) is from {{ $result->fftn ? $result->fftn->ftn : $result->fftn_t }} to {{ $result->tftn ? $result->tftn->ftn : $result->tftn_t }}, 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->all() as $error)
{{ $error }}
@endforeach @endif
DATE: {{ $msg->datetime }}
FLAGS: {{ $msg->flags()->keys()->join(', ') }}
FROM: {!! Message::tr($msg->from) !!} ({{ $msg->fftn ? $msg->fftn->ftn : $msg->fftn_t}})
TO: {!! Message::tr($msg->to) !!}@if($msg instanceof Netmail) ({{ $msg->tftn ? $msg->tftn->ftn : $msg->tftn_t }}) @endif
SUBJECT: {!! Message::tr($msg->subject) !!}
{!! Message::tr($msg->msg_src) !!}
@if($msg instanceof Netmail)
VIA:
{!! $msg->path->join(' -> ') !!}
@else
SEENBY:
{!! $msg->seenby->join('
') !!}
PATH:
{!! $msg->path->join('
') !!}
@endif
KLUDGES:
@foreach ($msg->kludges->sort(function($v,$k) { return $k; })->reverse() as $k => $v) {{ $k }} {{ $v }}
@endforeach
@endforeach

{{ $hexdump }}
@endforeach @endforeach
@endif @endsection