@extends('backend.layout') @section('content')
  Invoice: #{{$invoice->invoice_code}} @if($box) - 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() }} @endif
@if($invoice->status == 'new') @endif @if( !$invoice->contract && $invoice->status == 'new') @endif @if($invoice->status != 'cancel') @endif @if($invoice->contract) @endif
@if($invoice->status == 'new') @endif @foreach($items as $item) @if($invoice->status == 'new') @endif @endforeach
STT Thiết bị Dịch vụ Giá Vat Giảm trừ Thành tiền Thời gian Ngày tạo NoteAction
{{ $loop->index + 1 }} @if($item->product && $item->product->mac != null) Mac : {{$item->product->mac}} @else DeviceId : {{$item->deviceId}} @endif @if($item->service) {{@$item->service->name}} @else Chuyển box @endif {{ number_format($item->price, 0, '.', '.') }}đ {{ number_format($item->vat, 0, '.', '.') }}đ {{ number_format($item->discount, 0, '.', '.') }}đ {{ number_format( ($item->price + $item->vat - $item->discount), 0, '.', '.') }}đ @if($item->type == 'contract') Từ {{ $item->date_used }} đến {{ $item->expired_date }} @endif {{ $item->created_at }} {{ $item->note }}
@endsection @push('styles') @endpush @push('scripts') @endpush