StocksNew/Modules/Product/resources/views/warehouse/index.blade.php
Sampanna Rimal 53c0140f58 first commit
2024-08-27 17:48:06 +05:45

76 lines
3.0 KiB
PHP

@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