Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions resources/views/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
@if(!empty(config('orchid.vite', [])))
@vite(config('orchid.vite'))
@endif

<link rel="stylesheet" href="{{ asset('vendor/orchid/assets/app.css') }}">
<script src="{{ asset('vendor/orchid/assets/app.js') }}" defer></script>
</head>

<body class="{{ \Orchid\Support\Names::getPageNameClass() }}" data-controller="pull-to-refresh">
Expand Down
2 changes: 1 addition & 1 deletion resources/views/fields/datetime.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class="input-group"
data-datetime-target="instance"
>

@if(true === $allowEmpty)
@if(($allowEmpty ?? false) === true)
<div class="input-group-append bg-white">
<a class="input-group-text h-100 text-muted"
title="clear"
Expand Down
7 changes: 7 additions & 0 deletions resources/views/fields/select.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
// Lazy (HTTP) mode only when both lazyChunk is set and relation params exist (fromModel).
// fromQuery/fromEnum/options() do not set relationModel, so lazy() is ignored and options load eagerly.
$isLazy = isset($lazyChunk) && $lazyChunk !== null && !empty($relationModel);

// Default values for optional parameters.
$allowEmpty = $allowEmpty ?? false;
$allowAdd = $allowAdd ?? false;
$relationScope = $relationScope ?? '';
$relationAppend = $relationAppend ?? '';
$relationSearchColumns = $relationSearchColumns ?? '';
@endphp
<div data-controller="select"
data-select-placeholder-value="{{ $attributes['placeholder'] ?? '' }}"
Expand Down