A collection of reusable Blade components for Laravel admin panels.
These components help you build forms, inputs, and UI elements faster without writing repetitive HTML/JS code.
Require the package via Composer:
composer require mohammadrezaei1380/blade-admin-components
php artisan vendor:publish --provider="BladeAdminComponents\BladeAdminComponentsServiceProvider" --tag=views
Add the Service Provider to config/app.php (Laravel < 5.5, for auto-discovery it's not needed):
'providers' => [
BladeAdminComponents\BladeAdminComponentsServiceProvider::class,
];
π Usage
You can include components in your Blade files using aliases registered by the Service Provider.
Example: Text Input
@include('blade-admin::input-text', [
'name' => 'title',
'placeholder' => 'Enter the article title',
])
@include('blade-admin::input-text', [
'name' => 'price',
'hastNumberFormatLabel' => true,
'value' => 1234567
])
Example: Select
@include('admin.__components.select-2-ajax', [
'name' => 'tags',
'isMultiple' => true,
'url' => route('admin.tags.search.ajax'),
])
π§ Available Components
ckeditor β Rich text editor
datepicker β Date picker input
horizontal-checkbox β Checkbox aligned horizontally
horizontal-radiobutton β Radio button aligned horizontally
image-input β Image file input
input-text β Text input
input-text-repeater β Repeater input for multiple text fields
jsTree β JavaScript tree view
label β Custom label component
leaflet-map β Leaflet map input
select β Standard select dropdown
select-2 β Select2 dropdown
select-2-ajax β Select2 with AJAX support
separator-dashed β Dashed separator line
textarea β Textarea input
timepicker β Time picker input
tooltip-i β Tooltip helper
vertical-checkbox β Checkbox aligned vertically
vertical-radiobutton β Radio button aligned vertically