53 lines
1.1 KiB
PHP
53 lines
1.1 KiB
PHP
@props([
|
|
'minimize' => true,
|
|
'maximize' => false,
|
|
'restore' => true,
|
|
'help' => false,
|
|
'close' => true,
|
|
])
|
|
|
|
@aware([
|
|
'title' => config('app.name', 'Laravel'),
|
|
])
|
|
|
|
@php
|
|
if ($restore) {
|
|
$maximize = false;
|
|
}
|
|
@endphp
|
|
|
|
<div {{ $attributes->merge(['class' => 'window']) }}>
|
|
<div class="title-bar">
|
|
<div class="title-bar-text">{{ $title }}</div>
|
|
|
|
@if ($minimize || $maximize || $restore || $help || $close)
|
|
<div class="title-bar-controls">
|
|
@if ($minimize)
|
|
<button class="minimize" aria-hidden="true"></button>
|
|
@endif
|
|
|
|
@if ($maximize)
|
|
<button class="maximize" aria-hidden="true"></button>
|
|
@endif
|
|
|
|
@if ($restore)
|
|
<button class="restore" aria-hidden="true"></button>
|
|
@endif
|
|
|
|
@if ($help)
|
|
<button class="help" aria-hidden="true"></button>
|
|
@endif
|
|
|
|
@if ($close)
|
|
<button class="close" aria-hidden="true"></button>
|
|
@endif
|
|
</div>
|
|
@endif
|
|
</div>
|
|
|
|
<div class="window-body">{{ $slot }}</div>
|
|
|
|
@isset($status_bar)
|
|
<div class="status-bar">{{ $status_bar }}</div>
|
|
@endisset
|
|
</div>
|