64 lines
1.8 KiB
PHP
64 lines
1.8 KiB
PHP
@extends('merch_layouts.merch_master')
|
|
@section('page-title')
|
|
Merchant | Activity Log
|
|
@endsection
|
|
@section('page-content')
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
<div class="hpanel hblue">
|
|
<div class="panel-heading hbuilt">Activity Log for {{ $merchant->fullname }}</div>
|
|
<div class="panel-body">
|
|
<div class="table-responsive">
|
|
<table cellpadding="1" cellspacing="1" class="table table-bordered table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>Title</th>
|
|
<th>Details</th>
|
|
<th>Date</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@forelse ($activities as $row)
|
|
<tr>
|
|
<?php $content = json_decode($row->description, true); //dump($content['data']); ?>
|
|
<td>{{ $content['title'] }}</td>
|
|
|
|
<td>
|
|
<?php $flat = \Arr::flatten($content['data']); ?>
|
|
{{ implode(' - ', $flat) }}
|
|
</td>
|
|
|
|
<td>{{ $row->created_at }}</td>
|
|
</tr>
|
|
@empty
|
|
<tr>
|
|
<td colspan="">No Data</td>
|
|
</tr>
|
|
@endforelse
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{{ $activities->links() }}
|
|
</div>
|
|
<div class="panel-footer">
|
|
Page : {{ $activities->currentPage() }} of {{ $activities->lastPage() }} |
|
|
Total Records : <span id="totalRecords">{{ $activities->total() }}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
@endsection
|
|
@section('page-js')
|
|
<script>
|
|
// $(fddd)
|
|
console.log('foo bar');
|
|
</script>
|
|
|
|
@endsection
|