1
0
mirror of https://github.com/cp6/my-idlers.git synced 2024-11-16 23:42:32 +01:00
my-idlers/resources/views/notes/show.blade.php
cp6 924415eb66 Added & implemented notes
Added & implemented notes to servers, shared, reseller, domains, DNS and IPs

/notes is a CRUD resource
2022-12-02 13:57:28 +11:00

41 lines
1.6 KiB
PHP

@section("title", "Note $note->id")
<x-app-layout>
<x-slot name="header">
{{ __('Note') }}
</x-slot>
<div class="container">
<x-card class="shadow mt-3">
<div class="row">
<div class="col-12 mb-2">
<h2>
@if(!is_null($note->server))
{{$note->server->hostname}} (server)
@elseif(!is_null($note->shared))
{{$note->shared->main_domain}} (shared)
@elseif(!is_null($note->reseller))
{{$note->reseller->main_domain}} (reseller)
@elseif(!is_null($note->domain))
{{$note->domain->domain}}.{{$note->domain->extension}} (domain)
@elseif(!is_null($note->dns))
{{$note->dns->dns_type}} {{$note->dns->hostname}} (DNS)
@elseif(!is_null($note->ip))
{{$note->ip->address}} (IP)
@endif
</h2>
</div>
</div>
<div class="row mb-4">
<div class="col-12 px-lg-4">
<code>{{$note->note}}</code>
</div>
</div>
<x-back-btn>
<x-slot name="route">{{ route('notes.index') }}</x-slot>
</x-back-btn>
<x-edit-btn>
<x-slot name="route">{{ route('notes.edit', $note->id) }}</x-slot>
</x-edit-btn>
</x-card>
</div>
</x-app-layout>