| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- @extends('base.base')
- @section('base')
- <!-- 内容区域 -->
- <div class="main-panel">
- <div class="content-wrapper">
- <div class="page-header">
- <h3 class="page-title">
- <span class="page-title-icon bg-gradient-primary text-white mr-2">
- <i class="mdi mdi-settings"></i>
- </span>
- {{ __('auto.投放渠道管理') }}
- </h3>
- <nav aria-label="breadcrumb">
- <ol class="breadcrumb">
- <li class="breadcrumb-item"><a href="#">{{ __('auto.渠道管理') }}</a></li>
- <li class="breadcrumb-item active" aria-current="page">{{ __('auto.投放渠道管理') }}</li>
- </ol>
- </nav>
- </div>
- <div class="row">
- <div class="col-lg-12 grid-margin stretch-card">
- <div class="card">
- <div class="card-body">
- <h4 class="card-title">{{ __('auto.投放渠道管理') }}</h4>
- <form class="well form-inline margin-top-20" method="get" action='/admin/web_channel_config/list'>
- <span style="padding-left: 5px">{{ __('auto.渠道号:') }}</span>
- <input type="text" name="Channel" value="{{$channel}}" class="form-control">
- <span style="padding-left: 5px">{{ __('auto.包名:') }}</span>
- <input type="text" name="PackageName" value="{{$packageName}}" class="form-control">
- <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>
- <a href="/admin/web_channel_config/list" class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}&{{ __('auto.刷新') }}</a>
- </form>
- <br>
- {{-- <button type="button" class="btn btn-sm btn-gradient-success btn-icon-text" onclick="add()">--}}
- {{-- <i class="mdi mdi-plus btn-icon-prepend"></i>--}}
- {{-- {{ __('auto.添加配置') }}--}}
- {{-- </button>--}}
- <table class="table table-bordered">
- <thead>
- <tr>
- <th>ID</th>
- <th>{{ __('auto.渠道号') }}</th>
- <th>{{ __('auto.包名') }}</th>
- <th>RegionID</th>
- <th>{{ __('auto.备注') }}</th>
- <th>StateNo</th>
- <th>Platform</th>
- <th>BonusArr</th>
- <th>{{ __('auto.操作') }}</th>
- </tr>
- </thead>
- <tbody>
- @foreach($list as $k=>$v)
- <tr>
- <td>{{$v->ID}}</td>
- <td>{{$v->Channel}}</td>
- <td>{{$v->PackageName}}</td>
- <td>
- @php
- $regionInfo = $regionMap[$v->RegionID] ?? null;
- @endphp
- @if($regionInfo && $regionInfo['has_logo'])
- <div style="background-color: #000; display: inline-block; padding: 2px;">
- <img src="{{$regionInfo['logo']}}" style="max-height: 30px; width: auto;" alt="Logo" title="{{$v->RegionID}}">
- </div>
- @else
- <span style="color: {{$regionInfo['color'] ?? ''}}">{{$v->RegionID}}</span>
- @endif
- </td>
- <td>{{$v->Remarks}}</td>
- <td>{{$v->StateNo}}</td>
- <td>{{$v->PlatformName}} ({{$v->PlatformID}})</td>
- <td>{{$v->BonusArr}}</td>
- <td>
- <button class="btn btn-sm btn-gradient-dark" onclick="edit({{$v->ID}})">
- {{ __('auto.修改') }}
- </button>
- </td>
- </tr>
- @endforeach
- </tbody>
- </table>
- <div class="box-footer clearfix" id="pages">
- {{ __('auto.总共') }} <b>{{ $list->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
- {!! $list->appends(['Channel' => $channel, 'PackageName' => $packageName])->links() !!}
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script>
- function add() {
- layer.open({
- type: 2,
- title: '{{ __('auto.添加配置') }}',
- shadeClose: true,
- shade: 0.8,
- area: ['70%', '80%'],
- content: '/admin/web_channel_config/add'
- });
- }
- function edit(id) {
- layer.open({
- type: 2,
- title: '{{ __('auto.修改配置') }}',
- shadeClose: true,
- shade: 0.8,
- area: ['70%', '80%'],
- content: '/admin/web_channel_config/update/' + id
- });
- }
- </script>
- @endsection
|