@extends('backend.layout') @section('content')
  Mã hợp đồng: {{ $box->code }}   - Khách hàng: {{ $box->customer->fullname }}   - Đại lý: {{ $box->customer->user->name }}   - Sử dụng: {{ $box->devices->count() }}
@if(!$box->canceled) @endif
@if($devices != null) @foreach($devices as $stt => $device) @endforeach @endif
STT DeviceId Mac Hình thức App Thiết bị Vị trí Lời chào Trạng thái Ngày thêm Action
{{ $stt + 1 }} {{ $device->deviceId }} {{ @$device->store->mac }} {{ config('itv.use_type.'.$device->type) }} {{ $device->app ? $device->app.'-'.$device->version : 'Chưa cập nhật' }} {{ config('itv.flatform.'.$device->flatform) }} {{ $device->address }} {{ $device->mes }} @if( $box->deleted_at ) Đã xoá @elseif( $box->canceled ) Đã huỷ @else @if( (strtotime($box->expired_date)) > time() ) @if($box->status == 1) @if($device->status) Hoạt động @else Đang dừng @endif @else Dừng hợp đồng @endif @else Hết hạn @endif @endif {{ $device->created_at->format('Y-m-d') }}    @if($device->type == "other") @else @endif
@endsection @push('styles') @endpush @push('scripts') @endpush