2021-06-29 10:43:29 +00:00
|
|
|
@extends('layouts.app')
|
2021-11-26 11:09:55 +00:00
|
|
|
@section('htmlheader_title')
|
|
|
|
Verify Packet
|
|
|
|
@endsection
|
2021-06-29 10:43:29 +00:00
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<form class="row g-0 needs-validation" method="post" enctype="multipart/form-data" novalidate>
|
|
|
|
@csrf
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-8">
|
|
|
|
<div class="greyframe titledbox shadow0xb0">
|
|
|
|
<h2 class="cap">Upload Packet for Analysis</h2>
|
|
|
|
<p class="small">This packet will NOT be processed.</p>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<label for="file" class="form-label">Packet</label>
|
|
|
|
<div class="input-group has-validation">
|
|
|
|
<input class="form-control @error('file') is-invalid @enderror" type="file" id="file" name="file[]" required>
|
|
|
|
<span class="invalid-feedback" role="alert">
|
|
|
|
@error('file')
|
|
|
|
{{ $message }}
|
|
|
|
@else
|
|
|
|
A file is required.
|
|
|
|
@enderror
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-06-29 13:42:35 +00:00
|
|
|
@if($errors->count())
|
|
|
|
<div class="row">
|
2021-07-24 04:12:10 +00:00
|
|
|
<span class="btn btn-sm btn-danger" role="alert" style="text-align: left;">
|
2021-06-29 13:42:35 +00:00
|
|
|
There were errors with the submission.
|
|
|
|
<ul>
|
|
|
|
@foreach ($errors->all() as $error)
|
|
|
|
<li>{{ $error }}</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
2021-06-29 10:43:29 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<a href="{{ url('/') }}" class="btn btn-danger">Cancel</a>
|
2021-07-24 04:12:10 +00:00
|
|
|
<button type="submit" name="submit" class="btn btn-success float-end">Process</button>
|
2021-06-29 10:43:29 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
2022-11-13 13:29:55 +00:00
|
|
|
@if($results->count())
|
|
|
|
<h2>Archive Results: <strong class="highlight">{{ $filename }}</strong></h2>
|
|
|
|
|
|
|
|
<div class="accordion accordion-flush" id="accordion_packet">
|
|
|
|
@foreach($results as $item)
|
|
|
|
@foreach ($item as $file => $result)
|
|
|
|
<h3 class="accordion-header" data-bs-toggle="collapse" data-bs-target="#collapse_item_{{ $loop->parent->index }}_{{ $loop->index }}" aria-expanded="false">Packet Results <strong class="highlight">{{ $file }}</strong></h3>
|
|
|
|
<div id="collapse_item_{{ $loop->parent->index }}_{{ $loop->index }}" class="accordion-collapse collapse @if($result->messages->count() == 1 && $loop->parent->first)show @endif" aria-labelledby="packetdebug" data-bs-parent="#accordion_packet">
|
2021-06-29 10:43:29 +00:00
|
|
|
<div class="accordion-body">
|
2022-11-13 13:29:55 +00:00
|
|
|
<p>Packet <strong class="highlight">{{ $file }}</strong> (type <strong class="highlight">{{ $result->type }}</strong>) is from <strong class="highlight">{{ $result->fftn }}</strong> to <strong class="highlight">{{ $result->tftn }}</strong>, dated <strong class="highlight">{{ $result->date }}</strong>.</p>
|
|
|
|
<p>This packet has <strong class="highlight">{{ $result->messages->count() }}</strong> messages and <strong class="highlight">{{ $result->password ? 'DOES' : 'does NOT' }}</strong> have a password.</p>
|
|
|
|
<p>Tosser: <strong class="highlight">{{ $result->software->code }}</strong> (<strong class="highlight">{{ $result->software->name }}</strong>), version <strong class="highlight">{{ $result->software_ver }}</strong>. Capabilities: <strong class="highlight">{{ $result->capability }}</strong>.</p>
|
|
|
|
@if ($result->messages->count() > 1)
|
|
|
|
<p><small>You can expand each one</small></p>
|
2021-06-29 10:43:29 +00:00
|
|
|
@endif
|
2022-11-13 13:29:55 +00:00
|
|
|
<hr>
|
|
|
|
<div class="accordion accordion-flush" id="accordion_file_{{ $loop->parent->index }}">
|
|
|
|
@foreach ($result as $msg)
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<h4 class="accordion-header" id="packetdebug" data-bs-toggle="collapse" data-bs-target="#collapse_msg_{{ $loop->parent->index }}_{{ $loop->index }}" aria-expanded="false">
|
|
|
|
@if($msg->isNetmail()) Netmail @else Echomail <strong>{{ $msg->echoarea }}</strong> @endif : {{ $msg->msgid }}
|
|
|
|
</h4>
|
2021-06-29 10:43:29 +00:00
|
|
|
|
2022-11-13 13:29:55 +00:00
|
|
|
<div id="collapse_msg_{{ $loop->parent->index }}_{{ $loop->index }}" class="accordion-collapse collapse @if($result->messages->count() == 1 && $loop->parent->first)show @endif" aria-labelledby="packetdebug" data-bs-parent="#accordion_file_{{ $loop->parent->parent->index }}">
|
|
|
|
<div class="accordion-body">
|
|
|
|
@if ($msg->errors)
|
|
|
|
@foreach ($msg->errors->messages()->all() as $error)
|
|
|
|
<div class="alert alert-danger">
|
|
|
|
{{ $error }}
|
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
@endif
|
2021-06-29 10:43:29 +00:00
|
|
|
|
2022-11-13 13:29:55 +00:00
|
|
|
<div class="row pb-2">
|
|
|
|
<div class="col-4">
|
|
|
|
DATE: <strong class="highlight">{{ $msg->date }}</strong>
|
|
|
|
</div>
|
|
|
|
<div class="col-4">
|
|
|
|
FLAGS: <strong class="highlight">{{ $msg->flags()->filter()->keys()->join(', ') }}</strong>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-06-29 10:43:29 +00:00
|
|
|
|
2022-11-13 13:29:55 +00:00
|
|
|
<div class="row pb-2">
|
|
|
|
<div class="col-4">
|
|
|
|
FROM: <strong class="highlight">{!! \App\Classes\FTN\Message::tr($msg->user_from) !!}</strong> (<strong class="highlight">{{ $msg->fftn }}</strong>)
|
|
|
|
</div>
|
|
|
|
<div class="col-4">
|
|
|
|
TO: <strong class="highlight">{!! \App\Classes\FTN\Message::tr($msg->user_to) !!}</strong>@if($msg->isNetmail()) (<strong class="highlight">{{ $msg->tftn }}</strong>) @endif
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-06-29 10:43:29 +00:00
|
|
|
|
2022-11-13 13:29:55 +00:00
|
|
|
<div class="row pb-2">
|
|
|
|
<div class="col-8">
|
|
|
|
SUBJECT: <strong class="highlight">{!! \App\Classes\FTN\Message::tr($msg->subject) !!}</strong>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-06-29 10:43:29 +00:00
|
|
|
|
2022-11-13 13:29:55 +00:00
|
|
|
<div class="row pb-2">
|
|
|
|
<div class="col-8">
|
|
|
|
<div class="pad pb-0">
|
|
|
|
<pre class="highlight">{!! \App\Classes\FTN\Message::tr($msg->message).sprintf("\r * Origin: %s",$msg->origin) !!}</pre>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@if($msg->isNetmail())
|
|
|
|
<div class="row pb-2">
|
|
|
|
<div class="col-8">
|
|
|
|
VIA: <br><strong class="highlight">{!! $msg->via->join('</strong><br><strong class="highlight">') !!}</strong>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@else
|
|
|
|
<div class="row pb-2">
|
|
|
|
<div class="col-8">
|
|
|
|
SEENBY: <br><strong class="highlight">{!! $msg->seenby->join('</strong><br><strong class="highlight">') !!}</strong>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row pb-2">
|
|
|
|
<div class="col-8">
|
|
|
|
PATH: <br><strong class="highlight">{!! $msg->path->join('</strong><br><strong class="highlight">') !!}</strong>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<div class="row pb-2">
|
|
|
|
<div class="col-8">
|
|
|
|
<strong>KLUDGES:</strong> <br>
|
|
|
|
@foreach ($msg->kludge->sort(function($v,$k) { return $k; })->reverse() as $k => $v)
|
|
|
|
<strong class="highlight">{{ $k }}</strong> {{ $v }}<br>
|
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-06-29 10:43:29 +00:00
|
|
|
|
2022-11-13 13:29:55 +00:00
|
|
|
</div>
|
2021-07-05 11:31:04 +00:00
|
|
|
</div>
|
2022-11-13 13:29:55 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
2021-07-17 07:15:00 +00:00
|
|
|
|
2022-11-13 13:29:55 +00:00
|
|
|
<h4 class="accordion-header" id="packetdebug_{{ $loop->parent->parent->index }}" data-bs-toggle="collapse" data-bs-target="#collapse_hex_{{ $loop->parent->parent->index }}" aria-expanded="false">
|
|
|
|
Packet Dump
|
|
|
|
</h4>
|
|
|
|
<div id="collapse_hex_{{ $loop->parent->parent->index }}" class="accordion-collapse collapse" aria-labelledby="packetdebug_{{ $loop->parent->parent->index }}" data-bs-parent="#accordion_file_{{ $loop->parent->parent->index }}">
|
|
|
|
<div class="accordion-body">
|
|
|
|
<pre>
|
|
|
|
{{ hex_dump($msg) }}
|
|
|
|
</pre>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endforeach
|
2021-06-29 10:43:29 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-11-13 13:29:55 +00:00
|
|
|
@endforeach
|
|
|
|
@endforeach
|
2021-06-29 10:43:29 +00:00
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
@endsection
|