72 lines
4.0 KiB
PHP
72 lines
4.0 KiB
PHP
@extends('layouts.app')
|
|
@section('content')
|
|
<div class="page-content">
|
|
<div class="container-fluid">
|
|
@include('purchaseEntry::purchaseEntry.partials.menu')
|
|
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="card">
|
|
<div class="card-header align-items-center d-flex">
|
|
<h5 class="card-title flex-grow-1 mb-0">{{ $title }}</h5>
|
|
<div class="flex-shrink-0">
|
|
<a href="{{ route('purchaseEntry.create') }}" class="btn btn-success waves-effect waves-light"><i
|
|
class="ri-add-fill me-1 align-bottom"></i> Add</a>
|
|
</div>
|
|
</div>
|
|
|
|
<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>Supplier</th>
|
|
<th>Purchase Date</th>
|
|
<th>Total Amount</th>
|
|
{{-- <th>Action</th> --}}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@forelse ($purchaseEntries as $key => $item)
|
|
{{-- @dd($item) --}}
|
|
<tr>
|
|
<td>{{ $key + 1 }}</td>
|
|
<td>{{ $item->supplier->supplier_name }}</td>
|
|
<td>{{ $item->purchase_date }}</td>
|
|
<td>{{ $item->total_amt }}</td>
|
|
{{-- <td>
|
|
<div class="hstack flex-wrap gap-3">
|
|
<a href="javascript:void(0);" class="link-info fs-15 view-item-btn"
|
|
data-bs-toggle="modal" data-bs-target="#viewModal" data-link="{{ route('purchaseEntry.show', $item->id) }}">
|
|
|
|
<i class="ri-eye-line"></i>
|
|
</a>
|
|
<a href="{{ route('purchaseEntry.edit', $item->id) }}"
|
|
class="link-success fs-15 edit-item-btn"><i
|
|
class="ri-edit-2-line"></i></a>
|
|
|
|
<a href="javascript:void(0);"
|
|
data-link="{{ route('purchaseEntry.destroy', $item->id) }}"
|
|
data-id="{{ $item->id }}"
|
|
class="link-danger fs-15 remove-item-btn"><i
|
|
class="ri-delete-bin-line"></i></a>
|
|
|
|
</div>
|
|
</td> --}}
|
|
</tr>
|
|
@empty
|
|
@endforelse
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--end row-->
|
|
</div>
|
|
</div>
|
|
@endsection
|