|
|
@@ -1,61 +1,69 @@
|
|
|
@extends('layouts.app')
|
|
|
|
|
|
@section('content')
|
|
|
-<div class="container">
|
|
|
- <div class="col-md-10 offset-md-1">
|
|
|
- <div class="card ">
|
|
|
- <div class="card-header">
|
|
|
- <h1>
|
|
|
- CustomerLog
|
|
|
- <a class="btn btn-success float-xs-right" href="{{ route('customer_logs.create') }}">Create</a>
|
|
|
- </h1>
|
|
|
- </div>
|
|
|
+ <div class="container">
|
|
|
+ <div class="col-md-10 offset-md-1">
|
|
|
+ <div class="card ">
|
|
|
+ <div class="card-header">
|
|
|
+ <h1>
|
|
|
+ 客户日志
|
|
|
+ <a class="btn btn-success float-xs-right" href="{{ route('customer_logs.create') }}">新建</a>
|
|
|
+ </h1>
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="card-body">
|
|
|
- @if($customer_logs->count())
|
|
|
- <table class="table table-sm table-striped">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th class="text-xs-center">#</th>
|
|
|
- <th>Customer_id</th> <th>Customer_log_status_id</th> <th>User_id</th> <th>Description</th>
|
|
|
- <th class="text-xs-right">OPTIONS</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
+ <div class="card-body">
|
|
|
+ @if($customer_logs->count())
|
|
|
+ <table class="table table-sm table-striped">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th>客户名称</th>
|
|
|
+ <th>状态</th>
|
|
|
+ <th>创建用户</th>
|
|
|
+ <th>详情</th>
|
|
|
+ <th>编辑时间</th>
|
|
|
+ <th class="text-xs-right">操作</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
|
|
|
- <tbody>
|
|
|
- @foreach($customer_logs as $customer_log)
|
|
|
- <tr>
|
|
|
- <td class="text-xs-center"><strong>{{$customer_log->id}}</strong></td>
|
|
|
+ <tbody>
|
|
|
+ @foreach($customer_logs as $customer_log)
|
|
|
+ <tr>
|
|
|
+ <td>{{$customer_log->customer->name}}</td>
|
|
|
+ <td>{{$customer_log->customerLogStatus->name}}</td>
|
|
|
+ <td>{{$customer_log->user->name}}</td>
|
|
|
+ <td>{{$customer_log->description}}</td>
|
|
|
+ <td>{{$customer_log->updated_at->diffForHumans()}}</td>
|
|
|
|
|
|
- <td>{{$customer_log->customer_id}}</td> <td>{{$customer_log->customer_log_status_id}}</td> <td>{{$customer_log->user_id}}</td> <td>{{$customer_log->description}}</td>
|
|
|
+ <td class="text-xs-right">
|
|
|
+ <a class="btn btn-sm btn-primary"
|
|
|
+ href="{{ route('customer_logs.show', $customer_log->id) }}">
|
|
|
+ 查
|
|
|
+ </a>
|
|
|
+ @can('update',$customer_log)
|
|
|
+ <a class="btn btn-sm btn-warning"
|
|
|
+ href="{{ route('customer_logs.edit', $customer_log->id) }}">
|
|
|
+ 改
|
|
|
+ </a>
|
|
|
+ @endcan
|
|
|
+ <form action="{{ route('customer_logs.destroy', $customer_log->id) }}"
|
|
|
+ method="POST" style="display: inline;"
|
|
|
+ onsubmit="return confirm('删除!无法恢复!您确定么?');">
|
|
|
+ {{csrf_field()}}
|
|
|
+ <input type="hidden" name="_method" value="DELETE">
|
|
|
|
|
|
- <td class="text-xs-right">
|
|
|
- <a class="btn btn-sm btn-primary" href="{{ route('customer_logs.show', $customer_log->id) }}">
|
|
|
- V
|
|
|
- </a>
|
|
|
-
|
|
|
- <a class="btn btn-sm btn-warning" href="{{ route('customer_logs.edit', $customer_log->id) }}">
|
|
|
- E
|
|
|
- </a>
|
|
|
-
|
|
|
- <form action="{{ route('customer_logs.destroy', $customer_log->id) }}" method="POST" style="display: inline;" onsubmit="return confirm('Delete? Are you sure?');">
|
|
|
- {{csrf_field()}}
|
|
|
- <input type="hidden" name="_method" value="DELETE">
|
|
|
-
|
|
|
- <button type="submit" class="btn btn-sm btn-danger">D </button>
|
|
|
- </form>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- @endforeach
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- {!! $customer_logs->render() !!}
|
|
|
- @else
|
|
|
- <h3 class="text-xs-center alert alert-info">Empty!</h3>
|
|
|
- @endif
|
|
|
- </div>
|
|
|
+ <button type="submit" class="btn btn-sm btn-danger">删</button>
|
|
|
+ </form>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ @endforeach
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ {!! $customer_logs->render() !!}
|
|
|
+ @else
|
|
|
+ <h3 class="text-xs-center alert alert-info">Empty!</h3>
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
-</div>
|
|
|
-
|
|
|
-@endsection
|
|
|
+@stop
|