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

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

@if($invoices != null) @foreach($invoices as $stt => $invoice) @endforeach @endif
STT Mã Invoice Mã hợp đồng Đại lý Khách hàng Tổng thu Tổng chi Trang thái Ngày thanh toán Tạo bởi Ngày tạo Note Action
{{ ($invoices->currentPage() - 1)*$invoices->perPage() + $stt + 1 }} {{ $invoice->invoice_code }} @if( $invoice->contract ) {{ $invoice->contract_code }} {{@$invoice->contract->is_used}} @endif {{ @$invoice->user->name}} {{ @$invoice->customer->fullname }} {{ number_format($invoice->total_in, 0, '.', '.') }}đ {{ number_format($invoice->total_out, 0, '.', '.') }}đ @if($invoice->status == 'new') Mới @elseif($invoice->status == 'pay') Đã thanh toán @else Đã huỷ @endif {{ $invoice->pay_at }} {{ $invoice->createdBy->name }} {{ $invoice->created_at }} {{ $invoice->note }}
{{ $invoices->appends(@$_GET)->links() }}
@endsection @push('styles') @endpush @push('scripts') @endpush