ultimatepos/Modules/IndustrialEngineering/Resources/views/item_masters/index.blade.php

45 lines
1.8 KiB
PHP

@extends('layouts.app')
@section('title', __('industrialengineering::lang.item_masters'))
@section('content')
@include('industrialengineering::layouts.nav')
<section class="content-header">
<h1>@lang('industrialengineering::lang.item_masters')
@can('ie.items.create')
<a href="{{ action([\Modules\IndustrialEngineering\Http\Controllers\ItemMasterController::class, 'create']) }}" class="btn btn-primary pull-right"><i class="fa fa-plus"></i> @lang('industrialengineering::lang.add')</a>
@endcan
</h1>
</section>
<section class="content">
<div class="box box-primary">
<div class="box-body">
<table class="table table-bordered table-striped" id="ie_items_table" style="width:100%">
<thead>
<tr>
<th>@lang('industrialengineering::lang.code')</th>
<th>@lang('industrialengineering::lang.name')</th>
<th>@lang('industrialengineering::lang.type')</th>
<th>@lang('industrialengineering::lang.total_cost')</th>
<th>@lang('industrialengineering::lang.status')</th>
<th></th>
</tr>
</thead>
</table>
</div>
</div>
</section>
@endsection
@section('javascript')
<script>
$(function(){
$('#ie_items_table').DataTable({
processing: true, serverSide: true,
ajax: '{{ action([\Modules\IndustrialEngineering\Http\Controllers\ItemMasterController::class, 'index']) }}',
columns: [
{data:'item_code'},{data:'name'},{data:'item_type'},
{data:'standard_cost'},{data:'status'},{data:'action', orderable:false, searchable:false}
]
});
});
</script>
@endsection