@extends('backend.layout') @section('content')

{{ ($boxs->currentPage() - 1)*10 + 1 }}-{{ ($boxs->currentPage() - 1)*10 + $boxs->count() }} trong {{ $boxs->total() }} bản ghi.

@if($boxs != null) @foreach($boxs as $stt => $user) @endforeach @endif
STT Mã hợp đồng Thiết bị Địa chỉ lắp đặt Khách hàng Dịch vụ Invoice Code Lắp đặt Quy cách Ngày Active Ngày tính tiền Hết hạn Launcher Trạng thái Action
{{ ($boxs->currentPage() - 1)*$boxs->perPage() + $stt + 1 }} {{ $user->code }}  

{{ $user->devices->count() }}

Danh sách thiết bị
@foreach($user->devices as $key => $dev) @endforeach
STT deviceId Mac
{{ $key + 1 }} {{ $dev->deviceId }} {{ @$dev->store->mac }}
{{ $user->address }} @if($user->customer) - {{ $user->customer->fullname }}
- {{ $user->customer->address }} @if($auth->id != $user->customer->user->id && $auth->type != "admin")
Đại lý: {{$user->customer->user->name}} @endif @endif
{{ $user->service->name }} {{ $user->invoice_code }} {{@$user->install->name}} {{ $user->type == "new" ? 'Mở mới' : 'Gia hạn'}} {{ date('Y-m-d',strtotime($user->created_at)) }} {{ $user->date_used ? date('Y-m-d',strtotime($user->date_used)) : null}} {{ date('Y-m-d',strtotime($user->expired_date)) }} {{ config('vod.launchers.'.$user->launcher) }} @if( $user->deleted_at ) Deleted @elseif( $user->canceled ) Cancel @else @if( (strtotime($user->expired_date)) > time() ) @if($user->status == 1) Play @else Pause @endif @else End @endif @endif @if($user->device_id != null)

Reset Device @endif
@if($auth->id == @$user->customer->user->id || $auth->type == "admin")
    @if($user->type != 'cancel' )
  • @endif
@endif
{{ $boxs->appends(@$_GET)->links() }}
@endsection @push('styles') @endpush @push('scripts') @endpush