79 lines
4.5 KiB
PHP
Raw Normal View History

2024-05-16 09:31:08 +05:45
@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('estimateDetail.create')
<a href="{{ route('estimateDetail.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>Estimate</th>
<th>Billing Component</th>
<th>Qty</th>
<th>Price</th>
<th>Tax Amount</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@forelse ($estimateDetails as $key => $estimateDetail)
<tr>
<td>{{ $key + 1 }}</td>
<td>{{ $estimateDetail->estimate_id }}</td>
<td>{{ $estimateDetail->billing_component_id }}</td>
<td>{{ $estimateDetail->qty }}</td>
<td>{{ $estimateDetail->price }}</td>
<td>{{ $estimateDetail->tax_amount }}</td>
<td>
<div class="hstack flex-wrap gap-3">
@can('estimateDetail.show')
<a href="{{ route('estimateDetail.show', $estimateDetail->id) }}"
class="link-info fs-15">
<i class="ri-eye-line"></i>
</a>
@endcan
@can('estimateDetail.edit')
<a href="{{ route('estimateDetail.edit', $estimateDetail->id) }}"
class="link-success fs-15 edit-item-btn"><i
class="ri-edit-2-line"></i></a>
@endcan
@can('estimateDetail.destroy')
<a href="javascript:void(0);"
data-link="{{ route('estimateDetail.destroy', $estimateDetail->id) }}"
data-id="{{ $estimateDetail->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