@extends('backend.layout') @section('content')
{{ ($boxs->currentPage() - 1)*10 + 1 }}-{{ ($boxs->currentPage() - 1)*10 + count($boxs) }} trong {{ $boxs->total() }} bản ghi
STT | Mac Address | Loại | Khách hàng | Đại lý | Địa chỉ lắp đặt | Dịch vụ | Giao dịch | Thanh toán | Tình trạng | Trạng thái | Ngày kích hoạt | Ngày gia hạn | @if(\Auth::user()->type == "admin")Ngày tính tiền | @endifNgày hết hạn | Note |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ ($boxs->currentPage() - 1)*$boxs->perPage() + $stt + 1 }} | {{ mb_strtoupper($user->mac_address) }} | @if($user->type == 'renew') Gia hạn @elseif( $user->type == "cancel" ) Huỷ @else Mở mới @endif |
- {{ @$user->customer->fullname }} - {{ @$user->customer->address }} @if(@$user->customer->phone != null)- {{ @$user->customer->phone }}@endif |
{{ @$user->customer->user->name }} | {{ $user->address }} | {{ $user->service->name }} |
Giá: {{ number_format($user->price,0,'.','.') }} VAT: {{$user->vat}}% Chiết khấu: {{ number_format($user->discount,0,'.','.') }} Đặt cọc: {{ number_format($user->deposit,0,'.','.') }} Tổng: {{ into_money($user->price,$user->vat,$user->discount,$user->deposit) }} |
@if($user->type_payment == 1) Theo tháng @else Theo dịch vụ @endif | @if($user->payment == 1) Đã thanh toán @else Chưa thanh toán @endif | @if( $user->deleted_at ) Đã xoá @elseif( $user->canceled ) Đã huỷ @else @if( (strtotime($user->expired_date)) > time() ) @if($user->status == 1) Hoạt động @else Dừng @endif @else Hết hạn @endif @endif | {{ date('Y-m-d',strtotime($user->created_at)) }} | @if($user->type == 'renew') {{ date('Y-m-d',strtotime($user->updated_at)) }} @endif | @if(\Auth::user()->type == "admin") {{ $user->date_price != null ? date('Y-m-d',strtotime($user->date_price)) : ''}} @endif | {{ date('Y-m-d',strtotime($user->expired_date)) }} | {{ $user->description }} |