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

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

@if($devices != null) @foreach($devices as $stt => $device) @endforeach @endif
STT Loại Model DeviceId Mac Kho Hiện trạng Địa chỉ lắp đặt Lịch sử Ghi chú Action
{{ ($devices->currentPage() - 1)*$devices->perPage() + $stt + 1 }} {{ @$device->cate->name }} {{ $device->name }} {{ $device->deviceId }} {{ $device->mac }} @if(!$device->user_id) Kho tổng @else {{$device->agent->name}} @endif {{ config('itv.device.status.'.$device->status) }} @if($device->status == "used") {{@$device->customer->name}} - {{@$device->used->address}} @endif
    @foreach($device->histories as $h)
  • type}}> Ngày {{$h->created_at->format('d-m-Y')}} : @if(!$h->customer_id && !$h->customer_id) #{{$h->agency_id ? $h->agency_id.' -' : 'Tổng -'}} @endif {{ config('itv.use_type.'.$h->type) }}
  • @endforeach
{{ $device->note }}
    @if($device->status == "back" || $device->status == "fail" || $device->use == "back")
  • @endif @if( $device->user_id == null && $device->status != "fail")
  • @endif @if($device->status == "fail")
  • @endif
{{ $devices->appends(@$_GET)->links() }}
@endsection @push('styles') @endpush @push('scripts') @endpush