2022-06-01 10:15:55 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html dir="{{ language()->direction() }}" lang="{{ app()->getLocale() }}">
|
|
|
|
<x-layouts.admin.head>
|
|
|
|
@if (! empty($metaTitle))
|
|
|
|
<x-slot name="metaTitle">
|
|
|
|
{!! !empty($metaTitle->attributes->has('title')) ? $metaTitle->attributes->get('title') : $metaTitle !!}
|
|
|
|
</x-slot>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<x-slot name="title">
|
|
|
|
{!! !empty($title->attributes->has('title')) ? $title->attributes->get('title') : $title !!}
|
|
|
|
</x-slot>
|
|
|
|
</x-layouts.admin.head>
|
|
|
|
|
|
|
|
@mobile
|
2022-12-09 17:47:01 +03:00
|
|
|
<body class="g-sidenav-hidden bg-body">
|
2022-06-01 10:15:55 +03:00
|
|
|
@elsemobile
|
2022-12-09 17:47:01 +03:00
|
|
|
<body class="g-sidenav-show bg-body">
|
2022-06-01 10:15:55 +03:00
|
|
|
@endmobile
|
|
|
|
|
|
|
|
@stack('body_start')
|
|
|
|
|
|
|
|
<x-layouts.admin.menu />
|
|
|
|
|
2022-12-08 10:08:07 +03:00
|
|
|
<!-- this line will refactor -->
|
2022-12-09 17:46:05 +03:00
|
|
|
<!-- <x-loading.content /> -->
|
|
|
|
|
2022-06-01 10:15:55 +03:00
|
|
|
<div class="main-content xl:ltr:ml-64 xl:rtl:mr-64 transition-all ease-in-out" id="panel">
|
|
|
|
<div id="main-body">
|
|
|
|
<div class="container">
|
|
|
|
<x-layouts.admin.header>
|
|
|
|
<x-slot name="title">
|
2022-07-25 16:19:49 +03:00
|
|
|
{!! ! empty($title->attributes->has('title')) ? $title->attributes->get('title') : $title !!}
|
2022-06-01 10:15:55 +03:00
|
|
|
</x-slot>
|
|
|
|
|
2022-07-25 16:19:49 +03:00
|
|
|
@if (! empty($status))
|
2022-06-01 10:15:55 +03:00
|
|
|
<x-slot name="status">
|
2022-07-25 16:19:49 +03:00
|
|
|
{!! $status !!}
|
2022-06-01 10:15:55 +03:00
|
|
|
</x-slot>
|
|
|
|
@endif
|
|
|
|
|
2022-07-25 16:19:49 +03:00
|
|
|
@if (! empty($info))
|
|
|
|
<x-slot name="info">
|
|
|
|
{!! $info !!}
|
|
|
|
</x-slot>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@if (! empty($favorite) || (! empty($favorite) && $favorite->attributes->has('title')))
|
2022-06-01 10:15:55 +03:00
|
|
|
@if (! $favorite->attributes->has('title'))
|
|
|
|
<x-slot name="favorite">
|
2022-07-25 16:19:49 +03:00
|
|
|
{!! $favorite !!}
|
2022-06-01 10:15:55 +03:00
|
|
|
</x-slot>
|
|
|
|
@else
|
|
|
|
@php
|
|
|
|
$favorite = [
|
|
|
|
'title' => $favorite->attributes->get('title'),
|
|
|
|
'icon' => $favorite->attributes->get('icon'),
|
|
|
|
'route' => !empty($favorite->attributes->has('route')) ? $favorite->attributes->get('route') : '',
|
|
|
|
'url' => !empty($favorite->attributes->has('url')) ? $favorite->attributes->get('url') : '',
|
|
|
|
];
|
|
|
|
@endphp
|
|
|
|
|
|
|
|
<x-slot name="favorite">
|
|
|
|
<x-menu.favorite
|
|
|
|
:title="$favorite['title']"
|
|
|
|
:icon="$favorite['icon']"
|
|
|
|
:route="$favorite['route']"
|
|
|
|
:url="$favorite['url']"
|
|
|
|
/>
|
|
|
|
</x-slot>
|
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<x-slot name="buttons">
|
|
|
|
{!! $buttons ?? '' !!}
|
|
|
|
</x-slot>
|
|
|
|
|
|
|
|
<x-slot name="moreButtons">
|
|
|
|
{!! $moreButtons ?? '' !!}
|
|
|
|
</x-slot>
|
|
|
|
</x-layouts.admin.header>
|
|
|
|
|
|
|
|
<x-layouts.admin.content>
|
|
|
|
<x-layouts.admin.notifications />
|
|
|
|
|
|
|
|
{!! $content !!}
|
|
|
|
</x-layouts.admin.content>
|
|
|
|
|
|
|
|
<x-layouts.admin.footer />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@stack('body_end')
|
|
|
|
|
|
|
|
<x-layouts.admin.scripts />
|
|
|
|
</body>
|
|
|
|
</html>
|