-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
185 additions
and
392 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
@props([ | ||
// TODO: WIP | ||
]) | ||
|
||
@if (session('success')) | ||
<div class="alert alert-success alert-dismissible" role="alert"> | ||
<h3 class="mb-1">Success</h3> | ||
<p>{{ session('success') }}</p> | ||
|
||
<a class="btn-close" data-bs-dismiss="alert" aria-label="close"></a> | ||
</div> | ||
@endif | ||
|
||
@if ($errors->any()) | ||
<div class="alert alert-danger alert-dismissible" role="alert"> | ||
<h3 class="mb-1">Oops...</h3> | ||
<ul> | ||
@foreach ($errors->all() as $error) | ||
<li>{{ $error }}</li> | ||
@endforeach | ||
</ul> | ||
|
||
<a class="btn-close" data-bs-dismiss="alert" aria-label="close"></a> | ||
</div> | ||
@endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@props([ | ||
'type' => null ?? 'button', | ||
'route' | ||
]) | ||
|
||
|
||
@isset($route) | ||
|
||
<a href="{{ $route }}" {{ $attributes->class(['btn btn-primary w-100']) }}> | ||
{{ $slot }} | ||
</a> | ||
|
||
@else | ||
<button type="{{ $type }}" {{ $attributes->class(['btn btn-primary w-100']) }}> | ||
{{ $slot }} | ||
</button> | ||
@endisset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
@props([ | ||
'header', | ||
'content', | ||
'footer' | ||
]) | ||
|
||
<div {{ $attributes->class(['card']) }}> | ||
|
||
@isset($header) | ||
<div {{ $header->attributes->class(['card-header']) }}> | ||
<h3 class="card-title"> | ||
{{ $header }} | ||
</h3> | ||
</div> | ||
@endisset | ||
|
||
@isset($content) | ||
<div {{ $content->attributes->class(['card-body']) }}> | ||
{{ $content }} | ||
</div> | ||
@endisset | ||
|
||
@isset($footer) | ||
<div {{ $footer->attributes->class(['card-footer']) }}> | ||
{{ $footer }} | ||
</div> | ||
@endisset | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@props([ | ||
'action', | ||
'method' | ||
]) | ||
|
||
<form action="{{ $action }}" method="{{ $method }}"> | ||
@method($method) | ||
@csrf | ||
|
||
{{ $slot }} | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
@props([ | ||
'label' => null ?? ucfirst($name), | ||
'type' => null ?? 'text', | ||
'name', | ||
'id' => null ?? $name, | ||
'placeholder' => null, | ||
'autocomplete' => null ?? 'off', | ||
'readonly' => false, | ||
'disabled' => false, | ||
'required' => false, | ||
'value' => null ?? old($name) | ||
]) | ||
|
||
<div class="mb-3"> | ||
<label for="{{ $id }}" | ||
class="form-label @error($name) text-danger @enderror {{ $required ? 'required' : '' }}" | ||
> | ||
{{ __($label) }} | ||
</label> | ||
|
||
<input type="{{ $type }}" | ||
name="{{ $name }}" | ||
id="{{ $id }}" | ||
class="form-control rounded-0 @error($name) is-invalid @enderror" | ||
placeholder="{{ $placeholder }}" | ||
autocomplete="{{ $autocomplete }}" | ||
{{ $readonly ? 'readonly' : '' }} | ||
{{ $disabled ? 'disabled' : '' }} | ||
{{ $required ? 'required' : '' }} | ||
{{-- value="{{ old($name, $model->name ) }}"--}} | ||
value="{{ $value }}" | ||
> | ||
|
||
@error($name) | ||
<div class="invalid-feedback"> | ||
{{ $message }} | ||
</div> | ||
@enderror | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@props([ | ||
'thead', | ||
]) | ||
|
||
<div class="table-responsive"> | ||
<table class="table card-table table-vcenter text-nowrap datatable"> | ||
<thead> | ||
<tr> | ||
{{ $thead }} | ||
</tr> | ||
</thead> | ||
|
||
<tbody> | ||
{{ $slot }} | ||
</tbody> | ||
</table> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@props([ | ||
]) | ||
|
||
<td>{{ $slot }}</td> |
423 changes: 31 additions & 392 deletions
423
stubs/default/resources/views/layouts/tabler.blade.php
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters