本文整理汇总了PHP中Format::indoDate方法的典型用法代码示例。如果您正苦于以下问题:PHP Format::indoDate方法的具体用法?PHP Format::indoDate怎么用?PHP Format::indoDate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Format
的用法示例。
在下文中一共展示了Format::indoDate方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getAlladj
public function getAlladj(Request $req)
{
if ($req->ajax()) {
$res = [];
$out = '';
$items = data_penyesuaian_stok::show($req->all())->paginate($req->limit);
$no = $items->currentPage() == 1 ? 1 : $items->perPage() * $items->currentPage() - $items->perPage() + 1;
foreach ($items as $item) {
$out .= '
<tr>
<td>' . $no . '</td>
<td>
' . $item->no_penyesuaian_stok . '
<div class="link">
<small>[
<a target="_blank" href="' . url('/stockadj/print/' . $item->id_penyesuaian_stok) . '">Print</a>
]
</small>
</div>
</td>
<td>
' . $item->nm_depan . ' ' . $item->nm_belakang . '<br />
<small class="text-muted">' . \Format::indoDate($item->created_at) . ' at ' . \Format::jam($item->created_at) . '</small>
</td>
<td>' . \Format::hari($item->tanggal) . ', ' . \Format::indoDate($item->tanggal) . '</td>
</tr>
';
$no++;
}
$res['content'] = $out;
$res['pagin'] = $items->render();
return json_encode($res);
}
}
示例2: getAllitems
public function getAllitems(Request $req)
{
if ($req->ajax()) {
$res = [];
$items = ref_jabatan::where('nm_jabatan', $req->src)->paginate(10);
$out = '';
if ($items->total() > 0) {
$no = $items->currentPage() == 1 ? 1 : $items->perPage() * $items->currentPage() - $items->perPage() + 1;
foreach ($items as $item) {
$out .= '
<tr class="item_' . $item->id . ' items">
<td>' . $no . '</td>
<td>' . $item->nm_jabatan . '</td>
<td>
<div>
' . \Format::indoDate($item->created_at) . '
</div>
<small class="text-muted">' . \Format::hari($item->created_at) . ', ' . \Format::jam($item->created_at) . '</small>
</td>
</tr>
';
$no++;
}
} else {
$out = '
<tr>
<td colspan="3">Tidak ditemukan</td>
</tr>
';
}
$res['data'] = $out;
$res['pagin'] = $items->render();
return json_encode($res);
}
}
示例3: getAllitems
public function getAllitems(Request $req)
{
if ($req->ajax()) {
$res = [];
$items = data_recruitment::where('posisi', 'like', $req->src . "%")->paginate(10);
$out = '';
if ($items->total() > 0) {
$no = $items->currentPage() == 1 ? 1 : $items->perPage() * $items->currentPage() - $items->perPage() + 1;
foreach ($items as $item) {
if ($item->status == 1) {
$status = "Aktif";
} else {
$status = "Tidak Aktif";
}
$out .= '
<tr class="item_' . $item->id . ' items">
<td>' . $no . '</td>
<td>
<a href="javascript:;" title="' . $item->posisi . '" data-toggle="tooltip" data-placement="bottom">' . $item->posisi . '</a>
<div style="display:none;" class="tbl-opsi">
<small>[
<a href="' . url('recruitment/detail/' . $item->id) . '">Lihat</a>
| <a href="' . url('recruitment/update/' . $item->id) . '">Edit</a>
]</small>
</div>
</td>
<td>
<div>' . \Format::indoDate($item->date_open) . ' s/d ' . \Format::indoDate($item->date_close) . '</div>
<small class="text-muted">' . \Format::hari($item->date_open) . ', ' . \Format::jam($item->date_open) . '</small>
</td>
<td>' . $item->estimasi_gaji . '</td>
<td>' . $status . '</td>
</tr>
';
$no++;
}
} else {
$out = '
<tr>
<td colspan="4">Tidak ditemukan</td>
</tr>
';
}
$res['data'] = $out;
$res['pagin'] = $items->render();
return json_encode($res);
}
}
示例4: getAllfeedback
public function getAllfeedback(Request $req)
{
if ($req->ajax()) {
$res = [];
$out = '';
$items = data_feedback::me($req->all())->paginate($req->limit);
if ($items->total() > 0) {
$no = $items->currentPage() == 1 ? 1 : $items->perPage() * $items->currentPage() - $items->perPage() + 1;
foreach ($items as $item) {
$status = $item->status == 1 ? 'Open' : 'Closed';
$out .= '
<tr>
<td>' . $no . '</td>
<td>
<a href="' . url('/feedback/jawab/' . $item->id_feedback) . '">#' . $item->kode . '</a>
</td>
<td>
<a href="' . url('/feedback/jawab/' . $item->id_feedback) . '">' . $item->title . '</a>
</td>
<td>' . $status . '</td>
<td>
' . \Format::indoDate($item->created_at) . '<br />
<small class="text-muted">' . \Format::hari($item->created_at) . ', ' . \Format::jam($item->created_at) . '</small>
</td>
<td>' . $item->nm_depan . '</td>
<td class="text-right"><span class="badge">' . $item->notif . '</span></td>
</tr>
';
$no++;
}
} else {
$out = '
<tr>
<td colspan="7">Tidak ditemukan</td>
</tr>
';
}
$res['content'] = $out;
$res['pagin'] = $items->render();
return json_encode($res);
}
}
示例5: getAllgudang
public function getAllgudang(Request $req)
{
if ($req->ajax()) {
$res = [];
$out = '';
$items = ref_gudang::listgudang($req->all())->paginate($req->limit);
if ($items->total() > 0) {
$no = $items->currentPage() == 1 ? 1 : $items->perPage() * $items->currentPage() - $items->perPage() + 1;
$permission = \Auth::user()->permission;
foreach ($items as $item) {
$link = $permission > 2 ? '<small>[<a href="' . url('/gudang/edit/' . $item->id_gudang) . '">Rubah</a> |<a href="javascript:void(0);" onclick="del({{ $item->id_gudang }});" class="text-danger">Hapus</a> ]</small>' : '';
$out .= '
<tr class="item-' . $item->id_gudang . '">
<td>' . $no . '</td>
<td>
' . $item->kode_gudang . '<br />
' . $link . '
</td>
<td>
' . $item->nm_gudang . '
</td>
<td>
' . \Format::indoDate($item->created_at) . '<br />
<small class="text-muted">' . \Format::hari($item->created_at) . ', ' . \Format::jam($item->created_at) . '</small>
</td>
<?php $no++; ?>
</tr>
';
}
} else {
$out = '
<tr>
<td colspan="4">Tidak ditemukan</td>
</tr>
';
}
}
$res['content'] = $out;
$res['pagin'] = $items->render();
return json_encode($res);
}
示例6: getAllitems
public function getAllitems(Request $req)
{
if ($req->ajax()) {
$res = [];
$items = ref_konversi_satuan::join('ref_satuan AS a', 'a.id_satuan', '=', 'ref_konversi_satuan.id_satuan_max')->join('ref_satuan AS b', 'b.id_satuan', '=', 'ref_konversi_satuan.id_satuan_min')->join('data_barang', 'data_barang.id_barang', '=', 'ref_konversi_satuan.id_barang')->select('data_barang.nm_barang', 'a.nm_satuan as satuan_max', 'b.nm_satuan as satuan_min', 'ref_konversi_satuan.qty', 'ref_konversi_satuan.id', 'ref_konversi_satuan.created_at')->paginate(10);
$out = '';
if ($items->total() > 0) {
$no = $items->currentPage() == 1 ? 1 : $items->perPage() * $items->currentPage() - $items->perPage() + 1;
foreach ($items as $item) {
$out .= '
<tr class="item_' . $item->id . ' items">
<td>' . $no . '</td>
<td>' . $item->nm_barang . '</td>
<td>
<a href="javascript:;" title="' . $item->id_satuan_max . '" data-toggle="tooltip" data-placement="bottom">' . $item->satuan_max . '</a>
</td>
<td>' . $item->satuan_min . '</td>
<td>' . $item->qty . '</td>
<td>
<div>
' . \Format::indoDate($item->created_at) . '
</div>
<small class="text-muted">' . \Format::hari($item->created_at) . ', ' . \Format::jam($item->created_at) . '</small>
</td>
</tr>
';
$no++;
}
} else {
$out = '
<tr>
<td colspan="6">Tidak ditemukan</td>
</tr>
';
}
$res['data'] = $out;
$res['pagin'] = $items->render();
return json_encode($res);
}
}
示例7: getGetlogs
public function getGetlogs(Request $req)
{
if ($req->ajax()) {
$res = [];
$out = '';
$items = data_aktivitas::show($req->all())->paginate($req->limit);
if ($items->total() > 0) {
$no = $items->currentPage() == 1 ? 1 : $items->perPage() * $items->currentPage() - $items->perPage() + 1;
foreach ($items as $item) {
$out .= '
<tr>
<td>' . $no . '</td>
<td>
' . $item->nm_depan . ' ' . $item->nm_belakang . '
<div><small class="text-muted">Dept. ' . $item->nm_departemen . '</small></div>
</td>
<td>
' . \Format::indoDate($item->created_at) . '
<div><small class="text-muted">' . \Format::hari($item->created_at) . ', ' . \Format::jam($item->created_at) . '</small></div>
</td>
<td>
<small>' . $item->keterangan . '</small>
</td>
</tr>
';
$no++;
}
} else {
$out = '
<tr>
<td colspan="4">Tidak ditemukan</td>
<tr>
';
}
$res['pagin'] = $items->render();
$res['content'] = $out;
return json_encode($res);
}
}
示例8: getAllitems
public function getAllitems(Request $req)
{
if ($req->ajax()) {
$res = [];
$items = ref_klasifikasi::where('kode', $req->src)->orWhere('nm_klasifikasi', $req->src)->paginate(10);
$out = '';
if ($items->total() > 0) {
$no = $items->currentPage() == 1 ? 1 : $items->perPage() * $items->currentPage() - $items->perPage() + 1;
foreach ($items as $item) {
$out .= '
<tr class="item_' . $item->id . ' items">
<td>' . $no . '</td>
<td>' . $item->kode . '</td>
<td>
<a href="javascript:;" title="' . $item->id_klasifikasi . '" data-toggle="tooltip" data-placement="bottom">' . $item->nm_klasifikasi . '</a>
</td>
<td>
<div>
' . \Format::indoDate($item->created_at) . '
</div>
<small class="text-muted">' . \Format::hari($item->created_at) . ', ' . \Format::jam($item->created_at) . '</small>
</td>
</tr>
';
$no++;
}
} else {
$out = '
<tr>
<td colspan="4">Tidak ditemukan</td>
</tr>
';
}
$res['data'] = $out;
$res['pagin'] = $items->render();
return json_encode($res);
}
}
示例9: getAllpo
public function getAllpo(Request $req)
{
if ($req->ajax()) {
$res = [];
$out = '';
$status = $req->status == 0 ? [1, 2, 3] : $req->status;
$items = data_po::forvendor($req->id, $req->all(), $status)->paginate($req->limit);
$total = $items->total();
$status = [1 => 'Baru', 2 => 'Proses', 3 => 'Selesai'];
if ($total > 0) {
$no = $items->currentPage() == 1 ? 1 : $items->perPage() * $items->currentPage() - $items->perPage() + 1;
foreach ($items as $item) {
$out .= '
<tr>
<td>' . $no . '</td>
<td>
' . $item->no_po . '
<div class="link">
<small>
[<a href="' . url('/po/print/' . $item->id_po) . '" target="_balnk">Print</a>]
</small>
</div>
</td>
<td>
<span>' . \Format::indoDate($item->created_at) . '</span>
<div><small class="text-muted">' . \Format::hari($item->created_at) . ', ' . \Format::jam($item->created_at) . '</small></div>
</td>
<td>
<span>' . \Format::indoDate($item->deadline) . '</span>
</td>
<td>' . $status[$item->status] . '</td>
</tr>
';
$no++;
}
} else {
$out = '
<tr>
<td colspan="5">Tidak ditemukan</td>
</tr>
';
}
$res['content'] = $out;
$res['pagin'] = $items->render();
return json_encode($res);
}
}
示例10: postDetailspb
public function postDetailspb(Request $req)
{
if ($req->ajax()) {
$result = [];
$out = '';
$spb = data_spb::find($req->id);
if ($spb->status > 2) {
$items = data_spb_item::join('data_barang', 'data_barang.id_barang', '=', 'data_spb_item.id_item')->join('ref_satuan', 'ref_satuan.id_satuan', '=', 'data_spb_item.id_satuan')->where('data_spb_item.id_spb', $req->id)->whereIn('data_spb_item.status', [1, 2])->select('data_spb_item.*', 'data_barang.nm_barang', 'data_barang.kode', 'ref_satuan.nm_satuan')->get();
} else {
$items = data_spb_item::join('data_barang', 'data_barang.id_barang', '=', 'data_spb_item.id_item')->join('ref_satuan', 'ref_satuan.id_satuan', '=', 'data_spb_item.id_satuan')->where('data_spb_item.id_spb', $req->id)->where('data_spb_item.status', 1)->select('data_spb_item.*', 'data_barang.nm_barang', 'data_barang.kode', 'ref_satuan.nm_satuan')->get();
}
if ($spb->id_acc > 0) {
$me = data_karyawan::find($spb->id_acc);
$out .= '<div class="grid simple">
<div class="grid-title no-border"></div>
<div class="grid-body no-border">
<b>Disetujui Oleh : </b> ' . $me->nm_depan . ' ' . $me->nm_belakang . '
</div>
</div>
';
} else {
$out .= '<div class="grid simple">
<div class="grid-title no-border"></div>
<div class="grid-body no-border">
<i class="fa fa-warning"></i> Permintaan belum disetujui Kepala
</div>
</div>
';
}
$out .= '<div class="grid simple">
<div class="grid-title no-border">
<h4>' . count($items) . ' barang <strong>ditemukan</strong></4><br />
<small>Deadline : ' . \Format::indoDate($spb->deadline) . '</small>
</div>
<div class="grid-body no-border">
<table class="table table-striped">
<thead>
<tr>
<th>Kode</th>
<th>Barang</th>
<th class="text-right">Req Qty</th>
</tr>
</thead>
<tbody>
';
foreach ($items as $item) {
$out .= '
<tr>
<td>' . $item->kode . '</td>
<td>' . \Format::substr($item->nm_barang, 20) . '</td>
<td class="text-right">' . number_format($item->qty_lg, 0, ',', '.') . ' ' . $item->nm_satuan . '</td>
</tr>
';
}
$out .= '
</tbody>
</table>
</div>
</div>';
$btn = $spb->id_acc > 0 && \Auth::user()->permission > 1 && in_array($spb->status, [1, 2]) ? '<a href="' . url('/skb/process/' . $req->id) . '" class="btn btn-primary">Proses</a>' : '';
$result['kode'] = $spb->no_spb;
$result['content'] = $out;
$result['button'] = $btn;
return json_encode($result);
}
}
示例11: getAllitems
public function getAllitems(Request $req)
{
if ($req->ajax()) {
$res = [];
$items = data_karyawan::details()->where('NIK', 'like', $req->kode . "%")->where('nm_depan', 'like', $req->src . "%")->paginate(10);
$out = '';
if ($items->total() > 0) {
$no = $items->currentPage() == 1 ? 1 : $items->perPage() * $items->currentPage() - $items->perPage() + 1;
foreach ($items as $item) {
$out .= '
<tr class="item_' . $item->id . ' items">
<td>' . $no . '</td>
<td>
<a href="javascript:;" title="' . $item->nm_depan . '" data-toggle="tooltip" data-placement="bottom">' . $item->nm_depan . ' ' . $item->nm_belakang . '</a>
<div style="display:none;" class="tbl-opsi">
<small>[
<a href="' . url('karyawan/review/' . $item->id_karyawan) . '">Lihat</a>
| <a href="' . url('karyawan/review/' . $item->id_karyawan) . '">Detail</a>
]</small>
</div>
</td>
<td>' . $item->NIK . '</td>
<td>' . $item->nm_jabatan . '</td>
<td>
<div>
' . \Format::indoDate($item->created_at) . '
</div>
<small class="text-muted">' . \Format::hari($item->created_at) . ', ' . \Format::jam($item->created_at) . '</small>
</td>
<td>' . $item->nm_status . '</td>
</tr>
';
$no++;
}
} else {
$out = '
<tr>
<td colspan="4">Tidak ditemukan</td>
</tr>
';
}
$res['data'] = $out;
$res['pagin'] = $items->render();
return json_encode($res);
}
}
示例12: getAllskb
public function getAllskb(Request $req)
{
if ($req->ajax()) {
$res = [];
$out = '';
$items = data_skb::retur($req->all())->paginate($req->limit);
if ($items->total() > 0) {
$no = $items->currentPage() == 1 ? 1 : $items->perPage() * $items->currentPage() - $items->perPage() + 1;
foreach ($items as $item) {
$tipe = $item->tipe == 1 ? 'Obat' : 'Barang';
$out .= '
<tr>
<td>' . $no . '</td>
<td>
<div>' . $item->no_skb . '</div>
<div class="link text-muted">
<small>
[
<a href="' . url('/returgudang/create/' . $item->id_skb) . '">Proses</a>
| <a href="' . url('/skb/print/' . $item->id_skb) . '" target="_blank">Print</a>
]
</small>
</div>
</td>
<td>' . $item->no_spb . '</td>
<td>' . $tipe . '</td>
<td>' . $item->nm_departemen . '</td>
<td>
' . \Format::indoDate($item->created_at) . '<br />
<small class="text-muted">' . \Format::hari($item->created_at) . ', ' . \Format::jam($item->created_at) . '</small>
</td>
</tr>
';
$no++;
}
} else {
$out = '
<tr>
<td colspan="6">Tidak ditemukan</td>
</tr>
';
}
$res['content'] = $out;
$res['pagin'] = $items->render();
return json_encode($res);
}
}
示例13: getGetallprq
public function getGetallprq(Request $req)
{
if ($req->ajax()) {
$res = [];
$out = '';
$items = data_prq::listprq($req->all(), $req->status)->paginate($req->limit);
$no = $items->currentPage() == 1 ? 1 : $items->perPage() * $items->currentPage() - $items->perPage() + 1;
$status = [1 => 'Baru', 2 => 'Proses', 3 => 'Selesai', 4 => 'Hapus'];
if ($items->total() > 0) {
foreach ($items as $item) {
$class = strtotime($item->target) > strtotime(date('Y-m-d')) ? '' : 'class=text-danger';
$selisih = strtotime($item->target) > strtotime(date('Y-m-d')) ? '<small class="text-muted">' . \Format::selisih_hari($item->target, date('Y-m-d')) . 'hari dari sekarang</small>' : '';
$tipe = $item->tipe == 1 ? 'Obat' : 'Barang';
$tanda = empty($item->id_acc) ? '<i class="fa fa-times text-muted pull-right" title="Belum terverifikasi"></i>' : '<i title="Terverifikasi" class="fa fa-check-circle text-success pull-right"></i>';
$edit = $item->status < 2 ? '| <a href="' . url('/prq/edit/' . $item->id_prq) . '">Edit</a>' : '';
$del = \Auth::user()->permission > 1 && $item->status < 2 ? '| <a href="javascript:;" onclick="hapusprq(' . $item->id_prq . ');" class="text-danger">Hapus</a>' : '';
if (!empty($item->tgl_approval) || $item->tgl_approval != '0000-00-00 00:00:00') {
$tgl_approval = '
<div>' . \Format::indoDate2($item->tgl_approval) . '</div>
<div class="text-muted"><small>' . \Format::hari($item->tgl_approval) . ', ' . \Format::jam($item->tgl_approval) . '</small></div>
';
} else {
$tgl_approval = '<center>-</center>';
}
$out .= '
<tr class="item-prq-' . $item->id_prq . '">
<td>' . $no . '</td>
<td>
<div>
' . $item->no_prq . '
' . $tanda . '
</div>
<div class="links">
<small>
[
<a href="#" data-toggle="modal" data-target="#detailprq" onclick="detailprq(' . $item->id_prq . ')">Lihat</a>
' . $edit . '
' . $del . '
]
</small>
</div>
</td>
<td>
<div ' . $class . '> ' . \Format::indoDate2($item->target) . '</div>
' . $selisih . '
</td>
<td title="' . $item->nm_depan . ' ' . $item->nm_belakang . '">
' . \Format::substr($item->nm_depan . ' ' . $item->nm_belakang, 10) . '
<div><small class="text-muted">' . \Format::indoDate($item->created_at) . '</small></div>
</td>
<td>' . $tipe . '</td>
<td>' . $tgl_approval . '</td>
<td>' . $status[$item->status] . '</td>
</tr>
';
$no++;
}
} else {
$out = '
<tr>
<td colspan="7">Tidak ditemukan</td>
</tr>
';
}
$res['pagin'] = $items->render();
$res['content'] = $out;
return json_encode($res);
}
}
示例14: getPrq
public function getPrq(Request $req)
{
if ($req->ajax()) {
$res = [];
$out = '';
$stat = [1 => 'Baru', 2 => 'Proses', 3 => 'Selesai'];
$status = $req->status == 0 ? [1, 2] : $req->status;
$prq = data_prq_item::forsph($req->all(), $status, $this->ids)->paginate($req->limit);
$total = $prq->total();
if ($total > 0) {
foreach ($prq as $item) {
$st = $item->status > 1 ? 'Proses' : '';
$when = time() > strtotime($item->target) ? '' : \Format::selisih_hari(date('Y-m-d'), $item->target) . ' hari dari sekarang';
$danger = strtotime(date('Y-m-d')) > strtotime($item->target) ? 'text-danger semi-bold' : '';
$add = $item->id_acc > 0 && $item->status < 2 ? '<button class="btn btn-white" onclick="add(' . $item->id_prq_item . ');"><i class="fa fa-plus"></i></button>' : '<div title="Belum Ter Verifikasi"><i class="fa fa-times text-danger"></i></div>';
$out .= '
<tr title="' . $item->nm_barang . '" class="item-prq-' . $item->id_prq_item . '">
<td>
' . \Format::substr($item->nm_barang, 20) . '
<div><small class="text-muted">' . $item->kode . '</small></div>
</td>
<td class="text-right">
' . number_format($item->qty, 0, ',', '.') . ' ' . $item->nm_satuan . '
<div class="text-muted"><small>' . $st . '</small></div>
</td>
<td>
' . $item->no_prq . '
<div><small class="text-muted">' . \Format::indoDate($item->created_at) . '</small></div>
</td>
<td>
<div class="' . $danger . '">' . \Format::indoDate($item->target) . '</div>
<div><small class="text-muted">' . $when . '</small></div>
</td>
<td class="text-center">
' . $add . '
</td>
</tr>
';
}
} else {
$out = '<tr>
<td colspan="5">Tidak ditemukan</td>
</tr>';
}
$res['total'] = $total;
$res['pagin'] = $prq->render();
$res['content'] = $out;
return json_encode($res);
}
}
示例15: getLogharga
public function getLogharga(Request $req)
{
if ($req->ajax()) {
$res = [];
$items = data_po_item::join('data_po', 'data_po.id_po', '=', 'data_po_item.id_po')->where('data_po.id_vendor', $req->vendor)->whereIn('data_po.status', [1, 2, 3])->where('data_po_item.id_item', $req->id_barang)->orderby('data_po_item.id_po_item', 'desc')->select('data_po.no_po', 'data_po.id_po', 'data_po.created_at', 'data_po.status', 'data_po_item.harga')->paginate(10);
$status = [1 => 'Baru', 2 => 'Proses', 3 => 'Selesai'];
$out = '<table class="table table-striped" >
<thead>
<tr>
<th>PO</th>
<th>Tanggal</th>
<th>Status</th>
<th class="text-right">Harga</th>
</tr>
</thead>
<tbody>
';
if ($items->total() > 0) {
foreach ($items as $item) {
$out .= '<tr>
<td>
<a href="' . url('/po/print/' . $item->id_po) . '" target="_blank">' . $item->no_po . '</a>
</td>
<td>
' . \Format::indoDate($item->created_at) . '<br />
<div><small class="text-muted">' . \Format::hari($item->created_at) . ', ' . \Format::jam($item->created_at) . '</small></div>
</td>
<td>' . $status[$item->status] . '</td>
<td class="text-right">' . number_format($item->harga, 0, ',', '.') . '</td>
</tr>';
}
} else {
$out .= '<tr>
<td colspan="4">Tidak ditemukan</td>
<tr>';
}
$out .= '</tbody></table>';
$vendor = data_vendor::find($req->vendor);
$barang = data_barang::find($req->id_barang);
$res['vendor'] = $vendor->nm_vendor;
$res['kode'] = $barang->kode;
$res['content'] = $out;
$res['pagin'] = $items->render();
return json_encode($res);
}
}