@extends('Admin.layouts.master')

@section('content')
@php
$currentPage = 'manage-notification';
@endphp
<div class="layout-px-spacing">
            <div class="middle-content container-xxl p-0">
                <div class="row layout-top-spacing ">
                    <div class="top-tabel">
                        <div class="row">
                            <div class="col-md-4 left">
                                <a class="d-flex align-items-center justify-content-center pl-2"
                                    href="{{ route('manage.notification')}}">
                                    <img class="back-btn" src="{{ asset('public/assets/img/left-arrow.svg')}}">
                                    <h6 class="card-title p-0">View Details</h6>
                                </a>
                            </div>
                        </div>


                    </div>
                    <div class="col-xl-12 col-lg-12 col-sm-12  layout-spacing">
                        <div class="widget-content widget-content-area br-8 position-btn p-0">
                            <div class="view-details">
                                <div class="simple-tab">
                                    <div class="tab-content" id="myTabContent">
                                        <div class="tab-pane fade show active" id="home-tab-pane" role="tabpanel"
                                            aria-labelledby="home-tab" tabindex="0">
                                            <div class="row">
                                                <div class="col-md-6 mb-10 tabs23">
                                                    <table>
                                                        <tr class="title">
                                                            <td>Notification content :</td>
                                                            <td>Created Date :</td>
                                                        </tr>
                                                        <tr class="w-100">
                                                            <td>{{ $notification->description }}</td>
                                                            <td>{{ \Carbon\Carbon::parse($notification->date_added)->format('d/m/y') }}</td>
                                                        </tr>

                                                    </table>

                                                </div>
                                                <div class="col-md-6 mb-10">
                                                    <table>
                                                        <tr class="title">
                                                            <td>Recipients :</td>
                                                            {{-- <td>Last Modified Date :</td> --}}
                                                        </tr>
                                                        <tr class="w-100">

                                                            <td>@if($notification->notification->principal_type_xid == '3')
                                                                Customer
                                                                @else
                                                                Resturant
                                                                @endif
                                                            </td>

                                                        </tr>

                                                    </table>
                                                </div>
                                            </div>

                                        </div>
                                    </div>

                                </div>


                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>



@endsection

