Initial commit
This commit is contained in:
60
resources/views/organisation/activity.blade.php
Normal file
60
resources/views/organisation/activity.blade.php
Normal file
@@ -0,0 +1,60 @@
|
||||
@extends('dealer_layouts.dealer_master')
|
||||
@section('page-title')
|
||||
Dealer | 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 </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 $data_all = is_array($content['data']) ? implode(" | ", $content['data']) : $content['data']; ?>
|
||||
{{ $data_all }}
|
||||
</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')
|
||||
|
||||
@endsection
|
||||
Reference in New Issue
Block a user