first commit

This commit is contained in:
Sampanna Rimal
2024-08-27 17:48:06 +05:45
commit 53c0140f58
10839 changed files with 1125847 additions and 0 deletions

View File

View File

@ -0,0 +1,18 @@
@extends('layouts.app')
@section('content')
<div class="page-content">
<div class="container-fluid">
@include('layouts.partials.breadcrumb', ['title' => $title])
{{ html()->form('POST')->route('category.store')->class(['needs-validation'])->attributes(['novalidate', 'enctype' => 'multipart/form-data'])->open() }}
@include('product::category.partials.action')
{{ html()->form()->close() }}
</div>
</div>
@endsection
@push('js')
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
@endpush

View File

@ -0,0 +1,22 @@
@extends('layouts.app')
@section('content')
<div class="page-content">
<div class="container-fluid">
<!-- start page title -->
@include('layouts.partials.breadcrumb', ['title' => $title])
<!-- end page title -->
{{ html()->modelForm($category, 'PUT')->route('category.update', $category->id)->class(['needs-validation'])->attributes(['novalidate', 'enctype' => 'multipart/form-data'])->open() }}
@include('product::category.partials.action')
{{ html()->closeModelForm() }}
<!--end row-->
</div>
<!-- container-fluid -->
</div>
@endsection
@push('js')
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
@endpush

View File

@ -0,0 +1,71 @@
@extends('layouts.app')
@section('content')
<div class="page-content">
<div class="container-fluid">
@include('layouts.partials.breadcrumb', ['title' => $title])
<div class="mb-2 text-end">
@can('category.create')
<a href="{{ route('category.create') }}" class="btn btn-success btn-md waves-effect waves-light"><i
class="ri-add-fill me-1 align-bottom"></i> Add</a>
@endcan
</div>
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<div class="table-responsive">
<table id="buttons-datatables" class="display table-sm table-bordered table" style="width:100%">
<thead>
<tr>
<th>S.N</th>
<th>Title</th>
<th>Code</th>
<th>Slug</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@forelse ($categories as $key => $category)
<tr>
<td>{{ $key + 1 }}</td>
<td>{{ $category->title }}</td>
<td>{{ $category->code }}</td>
<td>{{ $category->slug }}</td>
<td>{!! $category->status_name !!}</td>
<td>
<div class="hstack flex-wrap gap-3">
@can('category.show')
<a href="{{ route('category.show', $category->id) }}" class="link-info fs-15">
<i class="ri-eye-line"></i>
</a>
@endcan
@can('category.edit')
<a href="{{ route('category.edit', $category->id) }}"
class="link-success fs-15 edit-item-btn"><i class="ri-edit-2-line"></i></a>
@endcan
@can('category.destroy')
<a href="javascript:void(0);" data-link="{{ route('category.destroy', $category->id) }}"
data-id="{{ $category->id }}" class="link-danger fs-15 remove-item-btn"><i
class="ri-delete-bin-line"></i></a>
@endcan
</div>
</td>
</tr>
@empty
@endforelse
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!--end row-->
</div>
</div>
@endsection

View File

@ -0,0 +1,51 @@
<div class="row">
<div class="col-lg-8">
<div class="card">
<div class="card-body">
<div class="row gy-1">
<div class="col-md-6">
{{ html()->label('Title')->class('form-label') }}
{{ html()->text('title')->class('form-control')->placeholder('Enter Title')->required() }}
</div>
<div class="col-md-6">
{{ html()->label('Code')->class('form-label') }}
{{ html()->text('code')->class('form-control')->placeholder('Enter Code') }}
</div>
<!-- <div class="col-md-6">
{{ html()->label('Slug')->class('form-label') }}
{{ html()->text('slug')->class('form-control')->placeholder('Enter Slug') }}
</div> -->
</div>
</div>
</div>
<!-- end card -->
<div class="mb-3 text-end">
<a href="{{ route('category.index') }}" class="btn btn-danger w-sm">Cancel</a>
<button type="submit" class="btn btn-success w-sm">Save</button>
</div>
</div>
<!-- end col -->
<div class="col-lg-4">
<div class="card">
<div class="card-header">
<h5 class="card-title mb-0">Publish</h5>
</div>
<div class="card-body">
<div class="row">
<div class="col-md-12">
{{ html()->label('Status')->class('form-label') }}
{{ html()->select('status', $status)->class('form-control')->placeholder('Enter Status')->required() }}
</div>
</div>
</div>
<!-- end card body -->
</div>
<!-- end card -->
</div>
</div>

View File

@ -0,0 +1,49 @@
@extends('layouts.app')
@section('content')
<div class="page-content">
<div class="container-fluid">
@include('layouts.partials.breadcrumb', ['title' => $title])
<div class="row">
<div class="col-md-8">
<div class="card card-body p-4">
<div>
<div class="table-responsive">
<table class="table-borderless mb-0 table">
<tbody>
<tr>
<th><span class="fw-medium">Category</span></th>
<td>{{ $category->title }}</td>
</tr>
<tr>
<th><span class="fw-medium">Code</span></th>
<td>{{ $category->code }}</td>
</tr>
<tr>
<th><span class="fw-medium">Slug</span></th>
<td>{{ $category->slug }}</td>
</tr>
<tr>
<th><span class="fw-medium">Status</span></th>
<td>{{ $category->status }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="mb-3 text-end">
<a href="{{ route('category.index') }}" class="btn btn-secondary w-sm">Back</a>
</div>
</div>
</div>
</div>
</div>
@endsection
@push('js')
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
@endpush

View File

@ -0,0 +1,7 @@
@extends('product::layouts.master')
@section('content')
<h1>Hello World</h1>
<p>Module: {!! config('product.name') !!}</p>
@endsection

View File

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Product Module - {{ config('app.name', 'Laravel') }}</title>
<meta name="description" content="{{ $description ?? '' }}">
<meta name="keywords" content="{{ $keywords ?? '' }}">
<meta name="author" content="{{ $author ?? '' }}">
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.bunny.net">
<link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" />
{{-- Vite CSS --}}
{{-- {{ module_vite('build-product', 'resources/assets/sass/app.scss') }} --}}
</head>
<body>
@yield('content')
{{-- Vite JS --}}
{{-- {{ module_vite('build-product', 'resources/assets/js/app.js') }} --}}
</body>

View File

@ -0,0 +1,19 @@
@extends('layouts.app')
@section('content')
<div class="page-content">
<div class="container-fluid">
@include('layouts.partials.breadcrumb', ['title' => $title])
{{ html()->form('POST')->route('product.store')->class(['needs-validation'])->attributes(['novalidate', 'enctype' => 'multipart/form-data'])->open() }}
@include('product::product.partials.action')
{{ html()->form()->close() }}
</div>
</div>
@endsection
@push('js')
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
@endpush

View File

@ -0,0 +1,22 @@
@extends('layouts.app')
@section('content')
<div class="page-content">
<div class="container-fluid">
<!-- start page title -->
@include('layouts.partials.breadcrumb', ['title' => $title])
<!-- end page title -->
{{ html()->modelForm($product, 'PUT')->route('product.update', $product->id)->class(['needs-validation'])->attributes(['novalidate', 'enctype' => 'multipart/form-data'])->open() }}
@include('product::product.partials.action')
{{ html()->closeModelForm() }}
<!--end row-->
</div>
<!-- container-fluid -->
</div>
@endsection
@push('js')
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
@endpush

View File

@ -0,0 +1,79 @@
@extends('layouts.app')
@section('content')
<div class="page-content">
<div class="container-fluid">
@include('layouts.partials.breadcrumb', ['title' => $title])
<div class="mb-2 text-end">
@can('product.create')
<a href="{{ route('product.create') }}" class="btn btn-success btn-md waves-effect waves-light"><i
class="ri-add-fill me-1 align-bottom"></i> Add</a>
@endcan
</div>
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<div class="table-responsive">
<table id="buttons-datatables" class="display table-sm table-bordered table" style="width:100%">
<thead>
<tr>
<th>S.N</th>
<th>Name</th>
<th>Price</th>
<th>Quantity</th>
<th>Category</th>
<th>Sub Category</th>
<th>Supplier</th>
<th>Warehouse</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@forelse ($products as $key => $product)
<tr>
<td>{{ $key + 1 }}</td>
<td>{{ $product->name }}</td>
<td>{{ $product->price }}</td>
<td>{{ $product->qty }}</td>
<td>{{ optional($product->category)->title }}</td>
<td>{{ optional($product->subCategory)->title }}</td>
<td>{{ optional($product->supplier)->supplier_name }}</td>
<td>{{ optional($product->warehouse)->title }}</td>
<td>{!! $product->status_name !!}</td>
<td>
<div class="hstack flex-wrap gap-3">
@can('product.show')
<a href="{{ route('product.show', $product->id) }}" class="link-info fs-15">
<i class="ri-eye-line"></i>
</a>
@endcan
@can('product.edit')
<a href="{{ route('product.edit', $product->id) }}"
class="link-success fs-15 edit-item-btn"><i class="ri-edit-2-line"></i></a>
@endcan
@can('product.destroy')
<a href="javascript:void(0);" data-link="{{ route('product.destroy', $product->id) }}"
data-id="{{ $product->id }}" class="link-danger fs-15 remove-item-btn"><i
class="ri-delete-bin-line"></i></a>
@endcan
</div>
</td>
</tr>
@empty
@endforelse
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!--end row-->
</div>
</div>
@endsection

View File

@ -0,0 +1,98 @@
<div class="row">
<div class="col-lg-9">
<div class="card">
<div class="card-body">
<div class="row gy-1">
<div class="col-md-6">
{{ html()->label('Product Name')->class('form-label') }}
{{ html()->text('name')->class('form-control')->placeholder('Enter Product Name')->required() }}
</div>
<div class="col-md-6">
{{ html()->label('Price')->class('form-label') }}
{{ html()->text('price')->class('form-control')->placeholder('Enter Price')->required() }}
</div>
<div class="col-md-6">
{{ html()->label('Quantity')->class('form-label') }}
{{ html()->text('qty')->class('form-control')->placeholder('Enter Quantity')->required() }}
</div>
<div class="col-md-4">
{{ html()->label('Category')->class('form-label') }}
{{ html()->select('category_id', $category)->class('form-select select2')->placeholder('Select Category')->id('category_id') }}
</div>
<div class="col-md-4">
{{ html()->label('Sub Category')->class('form-label') }}
{{ html()->select('sub_category_id', $subCategory)->class('form-select select2')->placeholder('Select Sub Category')->id('sub_category_id') }}
</div>
<div class="col-md-4">
{{ html()->label('Supplier')->class('form-label') }}
{{ html()->select('supplier_id', $supplier)->class('form-select select2')->placeholder('Select Supplier') }}
</div>
<div class="col-md-4">
{{ html()->label('Warehouse')->class('form-label') }}
{{ html()->select('warehouse_id', $warehouse)->class('form-select select2')->placeholder('Select Warehouse') }}
</div>
<div class="col-md-12">
{{ html()->label('Description')->class('form-label') }}
{{ html()->textarea('desc')->class('form-control')->placeholder('Enter Description')->required() }}
</div>
</div>
<!-- end card -->
</div>
<!-- end card -->
</div>
<div class="mb-3 text-end">
<a href="{{ route('product.index') }}" class="btn btn-danger w-sm">Cancel</a>
<button type="submit" class="btn btn-success w-sm">Save</button>
</div>
</div>
<!-- end col -->
<div class="col-lg-3">
<div class="card">
<div class="card-header">
<h5 class="card-title mb-0">Publish</h5>
</div>
<div class="card-body">
<div class="row">
<div class="col-md-12">
{{ html()->label('Status')->class('form-label') }}
{{ html()->select('status', $status)->class('form-control')->placeholder('Select Status')->required() }}
</div>
</div>
<!-- end card -->
</div>
<!-- end col -->
</div>
@push('js')
<script>
$(document).on('change', '#category_id', function(e) {
e.preventDefault();
var category_id = $(this).val();
if (category_id) {
$.ajax({
type: "GET",
url: "{{ route('getSubCategories') }}",
data: {
'category_id': category_id
},
dataType: "json",
success: function(response) {
$('#sub_category_id').html('<option value="#" selected disabled>Select Sub Category</option>');
$.each(response.message, function(key, value) {
$('#sub_category_id').append('<option value=' + value.id + '>' + value.title + '</option>');
});
}
});
}
});
</script>
@endpush

View File

@ -0,0 +1,65 @@
@extends('layouts.app')
@section('content')
<div class="page-content">
<div class="container-fluid">
@include('layouts.partials.breadcrumb', ['title' => $title])
<div class="row">
<div class="col-md-8">
<div class="card card-body p-4">
<div>
<div class="table-responsive">
<table class="table-borderless mb-0 table">
<tbody>
<tr>
<th><span class="fw-medium">Product Name</span></th>
<td>{{ $product->name }}</td>
</tr>
<tr>
<th><span class="fw-medium">Price</span></th>
<td>{{ $product->price }}</td>
</tr>
<tr>
<th><span class="fw-medium">Quantity</span></th>
<td>{{ $product->qty }}</td>
</tr>
<tr>
<th><span class="fw-medium">Category</span></th>
<td>{{ optional($product->category)->title }}</td>
</tr>
<tr>
<th><span class="fw-medium">Sub Category</span></th>
<td>{{ optional($product->subCategory)->title }}</td>
</tr>
<tr>
<th><span class="fw-medium">Supplier</span></th>
<td>{{ optional($product->supplier)->supplier_name }}</td>
</tr>
<tr>
<th><span class="fw-medium">Warehouse</span></th>
<td>{{ optional($product->warehouse)->title }}</td>
</tr>
<tr>
<th><span class="fw-medium">Status</span></th>
<td>{{ $product->status }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="mb-3 text-end">
<a href="{{ route('product.index') }}" class="btn btn-secondary w-sm">Back</a>
</div>
</div>
</div>
</div>
</div>
@endsection
@push('js')
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
@endpush

View File

@ -0,0 +1,16 @@
@extends('layouts.app')
@section('content')
<div class="page-content">
<div class="container-fluid">
@include('layouts.partials.breadcrumb', ['title' => $title])
{{ html()->form('POST')->route('subCategory.store')->class(['needs-validation'])->attributes(['novalidate', 'enctype' => 'multipart/form-data'])->open() }}
@include('product::sub_category.partials.action')
{{ html()->form()->close() }}
</div>
</div>
@endsection
@push('js')
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
@endpush

View File

@ -0,0 +1,22 @@
@extends('layouts.app')
@section('content')
<div class="page-content">
<div class="container-fluid">
<!-- start page title -->
@include('layouts.partials.breadcrumb', ['title' => $title])
<!-- end page title -->
{{ html()->modelForm($sub_category, 'PUT')->route('subCategory.update', $sub_category->id)->class(['needs-validation'])->attributes(['novalidate', 'enctype' => 'multipart/form-data'])->open() }}
@include('product::sub_category.partials.action')
{{ html()->closeModelForm() }}
<!--end row-->
</div>
<!-- container-fluid -->
</div>
@endsection
@push('js')
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
@endpush

View File

@ -0,0 +1,74 @@
@extends('layouts.app')
@section('content')
<div class="page-content">
<div class="container-fluid">
@include('layouts.partials.breadcrumb', ['title' => $title])
<div class="mb-2 text-end">
@can('subCategory.create')
<a href="{{ route('subCategory.create') }}" class="btn btn-success btn-md waves-effect waves-light"><i
class="ri-add-fill me-1 align-bottom"></i> Add</a>
@endcan
</div>
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<div class="table-responsive">
<table id="buttons-datatables" class="display table-sm table-bordered table" style="width:100%">
<thead>
<tr>
<th>S.N</th>
<th>Title</th>
<th>Code</th>
<th>Slug</th>
<th>Category</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@forelse ($sub_categories as $key => $sub_category)
<tr>
<td>{{ $key + 1 }}</td>
<td>{{ $sub_category->title }}</td>
<td>{{ $sub_category->code }}</td>
<td>{{ $sub_category->slug }}</td>
<td>{{ optional($sub_category->category)->title }}</td>
<td>{!! $sub_category->status_name !!}</td>
<td>
<div class="hstack flex-wrap gap-3">
@can('subCategory.show')
<a href="{{ route('subCategory.show', $sub_category->id) }}" class="link-info fs-15">
<i class="ri-eye-line"></i>
</a>
@endcan
@can('subCategory.edit')
<a href="{{ route('subCategory.edit', $sub_category->id) }}"
class="link-success fs-15 edit-item-btn"><i class="ri-edit-2-line"></i></a>
@endcan
@can('subCategory.destroy')
<a href="javascript:void(0);"
data-link="{{ route('subCategory.destroy', $sub_category->id) }}"
data-id="{{ $sub_category->id }}" class="link-danger fs-15 remove-item-btn"><i
class="ri-delete-bin-line"></i></a>
@endcan
</div>
</td>
</tr>
@empty
@endforelse
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!--end row-->
</div>
</div>
@endsection

View File

@ -0,0 +1,63 @@
<div class="row">
<div class="col-lg-8">
<div class="card">
<div class="card-body">
<div class="row gy-1">
<div class="col-md-6">
{{ html()->label('Title')->class('form-label') }}
{{ html()->text('title')->class('form-control')->placeholder('Enter Title')->required() }}
</div>
<div class="col-md-6">
{{ html()->label('Code')->class('form-label') }}
{{ html()->text('code')->class('form-control')->placeholder('Enter Code') }}
</div>
<!-- <div class="col-md-6">
{{ html()->label('Slug')->class('form-label') }}
{{ html()->text('slug')->class('form-control')->placeholder('Enter Slug') }}
</div> -->
<div class="col-md-6">
{{ html()->label('Description')->class('form-label') }}
{{ html()->text('description')->class('form-control')->placeholder('Enter Description') }}
</div>
<div class="col-md-4">
{{ html()->label('Category')->class('form-label') }}
{{ html()->select('category_id', $category)->class('form-select select2')->placeholder('Select Category') }}
</div>
</div>
</div>
</div>
<!-- end card -->
<div class="mb-3 text-end">
<a href="{{ route('category.index') }}" class="btn btn-danger w-sm">Cancel</a>
<button type="submit" class="btn btn-success w-sm">Save</button>
</div>
</div>
<!-- end col -->
<div class="col-lg-4">
<div class="card">
<div class="card-header">
<h5 class="card-title mb-0">Publish</h5>
</div>
<div class="card-body">
<div class="row">
<div class="col-md-12">
{{ html()->label('Status')->class('form-label') }}
{{-- {{ html()->select('status', '11')->class('form-control')->placeholder('Select Status') }}
--}}
{{ html()->select('status', $status)->class('form-control')->placeholder('Select Status')->required() }}
</div>
</div>
</div>
<!-- end card body -->
</div>
<!-- end card -->
</div>
</div>

View File

@ -0,0 +1,49 @@
@extends('layouts.app')
@section('content')
<div class="page-content">
<div class="container-fluid">
@include('layouts.partials.breadcrumb', ['title' => $title])
<div class="row">
<div class="col-md-8">
<div class="card card-body p-4">
<div>
<div class="table-responsive">
<table class="table-borderless mb-0 table">
<tbody>
<tr>
<th><span class="fw-medium">Client Name</span></th>
<td>{{ $sub_category->client_name }}</td>
</tr>
<tr>
<th><span class="fw-medium">Company</span></th>
<td>{{ $sub_category->company }}</td>
</tr>
<tr>
<th><span class="fw-medium">Email</span></th>
<td>{{ $sub_category->email_address }}</td>
</tr>
<tr>
<th><span class="fw-medium">Address</span></th>
<td>{{ $sub_category->address }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="mb-3 text-end">
<a href="{{ route('sub_category.index') }}" class="btn btn-secondary w-sm">Back</a>
</div>
</div>
</div>
</div>
</div>
@endsection
@push('js')
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
@endpush

View File

@ -0,0 +1,16 @@
@extends('layouts.app')
@section('content')
<div class="page-content">
<div class="container-fluid">
@include('layouts.partials.breadcrumb', ['title' => $title])
{{ html()->form('POST')->route('warehouse.store')->class(['needs-validation'])->attributes(['novalidate', 'enctype' => 'multipart/form-data'])->open() }}
@include('product::warehouse.partials.action')
{{ html()->form()->close() }}
</div>
</div>
@endsection
@push('js')
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
@endpush

View File

@ -0,0 +1,22 @@
@extends('layouts.app')
@section('content')
<div class="page-content">
<div class="container-fluid">
<!-- start page title -->
@include('layouts.partials.breadcrumb', ['title' => $title])
<!-- end page title -->
{{ html()->modelForm($warehouse, 'PUT')->route('warehouse.update', $warehouse->id)->class(['needs-validation'])->attributes(['novalidate', 'enctype' => 'multipart/form-data'])->open() }}
@include('product::warehouse.partials.action')
{{ html()->closeModelForm() }}
<!--end row-->
</div>
<!-- container-fluid -->
</div>
@endsection
@push('js')
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
@endpush

View File

@ -0,0 +1,75 @@
@extends('layouts.app')
@section('content')
<div class="page-content">
<div class="container-fluid">
@include('layouts.partials.breadcrumb', ['title' => $title])
<div class="mb-2 text-end">
@can('warehouse.create')
<a href="{{ route('warehouse.create') }}" class="btn btn-success btn-md waves-effect waves-light"><i
class="ri-add-fill me-1 align-bottom"></i> Add</a>
@endcan
</div>
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<div class="table-responsive">
<table id="buttons-datatables" class="display table-sm table-bordered table" style="width:100%">
<thead>
<tr>
<th>S.N</th>
<th>Title</th>
<th>Capacity</th>
<th>Phone</th>
<th>Email</th>
<th>Address</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@forelse ($warehouses as $key => $warehouse)
<tr>
<td>{{ $key + 1 }}</td>
<td>{{ $warehouse->title }}</td>
<td>{{ $warehouse->capacity }}</td>
<td>{{ $warehouse->phone }}</td>
<td>{{ $warehouse->email }}</td>
<td>{{ $warehouse->address }}</td>
<td>{!! $warehouse->status_name !!}</td>
<td>
<div class="hstack flex-wrap gap-3">
@can('warehouse.show')
<a href="{{ route('warehouse.show', $warehouse->id) }}" class="link-info fs-15">
<i class="ri-eye-line"></i>
</a>
@endcan
@can('warehouse.edit')
<a href="{{ route('warehouse.edit', $warehouse->id) }}"
class="link-success fs-15 edit-item-btn"><i class="ri-edit-2-line"></i></a>
@endcan
@can('warehouse.destroy')
<a href="javascript:void(0);" data-link="{{ route('warehouse.destroy', $warehouse->id) }}"
data-id="{{ $warehouse->id }}" class="link-danger fs-15 remove-item-btn"><i
class="ri-delete-bin-line"></i></a>
@endcan
</div>
</td>
</tr>
@empty
@endforelse
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!--end row-->
</div>
</div>
@endsection

View File

@ -0,0 +1,60 @@
<div class="row">
<div class="col-lg-8">
<div class="card">
<div class="card-body">
<div class="row gy-1">
<div class="col-md-6">
{{ html()->label('Warehouse Name')->class('form-label') }}
{{ html()->text('title')->class('form-control')->placeholder('Enter Warehouse')->required() }}
</div>
<div class="col-md-6">
{{ html()->label('Capacity')->class('form-label') }}
{{ html()->text('capacity')->class('form-control')->placeholder('Enter Capacity')->required() }}
</div>
<div class="col-md-6">
{{ html()->label('Contact')->class('form-label') }}
{{ html()->text('phone')->class('form-control')->placeholder('Enter Phone')->required() }}
</div>
<div class="col-md-6">
{{ html()->label('Email')->class('form-label') }}
{{ html()->email('email')->class('form-control')->placeholder('Enter Email') }}
</div>
<div class="col-md-6">
{{ html()->label('Address')->class('form-label') }}
{{ html()->text('address')->class('form-control')->placeholder('Enter Address')->placeholder('Enter Email') }}
</div>
</div>
</div>
</div>
<!-- end card -->
<div class="mb-3 text-end">
<a href="{{ route('warehouse.index') }}" class="btn btn-danger w-sm">Cancel</a>
<button type="submit" class="btn btn-success w-sm">Save</button>
</div>
</div>
<!-- end col -->
<div class="col-lg-4">
<div class="card">
<div class="card-header">
<h5 class="card-title mb-0">Publish</h5>
</div>
<div class="card-body">
<div class="row">
<div class="col-md-12">
{{ html()->label('Status')->class('form-label') }}
{{ html()->select('status', $status)->class('form-control')->placeholder('Select Status') }}
</div>
</div>
</div>
<!-- end card body -->
</div>
<!-- end card -->
</div>
<!-- end col -->
</div>

View File

@ -0,0 +1,57 @@
@extends('layouts.app')
@section('content')
<div class="page-content">
<div class="container-fluid">
@include('layouts.partials.breadcrumb', ['title' => $title])
<div class="row">
<div class="col-md-8">
<div class="card card-body p-4">
<div>
<div class="table-responsive">
<table class="table-borderless mb-0 table">
<tbody>
<tr>
<th><span class="fw-medium">Title</span></th>
<td>{{ $warehouse->title }}</td>
</tr>
<tr>
<th><span class="fw-medium">Capacity</span></th>
<td>{{ $warehouse->capacity }}</td>
</tr>
<tr>
<th><span class="fw-medium">Phone</span></th>
<td>{{ $warehouse->phone }}</td>
</tr>
<tr>
<th><span class="fw-medium">Email</span></th>
<td>{{ $warehouse->email }}</td>
</tr>
<tr>
<th><span class="fw-medium">Email</span></th>
<td>{{ $warehouse->address }}</td>
</tr>
<tr>
<th><span class="fw-medium">Status</span></th>
<td>{{ $warehouse->status }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="mb-3 text-end">
<a href="{{ route('warehouse.index') }}" class="btn btn-secondary w-sm">Back</a>
</div>
</div>
</div>
</div>
</div>
@endsection
@push('js')
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
@endpush