<div class="box">
  <div class="box-header with-border">
    <h3 class="box-title">{{ Trans('invoices.history')}}</h3>
  </div>
  <div class="box-body">
    <table class="table table-striped table-bordered">
      <thead>
        <tr>
          <th>{{ Trans('invoices.id') }}</th>
          <th>{{ Trans('invoices.recieved') }}</th>
          <th>{{ Trans('invoices.changed') }}</th>
          <th>{{ Trans('invoices.created_at') }}</th>
        </tr>
      </thead>
      <tbody>
        @if(count($relate_invoices))
          @foreach($relate_invoices as $relate_invoice)
            <tr>
              <td>{{ $relate_invoice->id }}</td>
              <td>{{ money($relate_invoice->recieved) }}</td>
              <td>{{ money($relate_invoice->changed) }}</td>
              <td>{{ $relate_invoice->created_at }}</td>
            </tr>
          @endforeach
      @else
        <tr>
          <td colspan="4" class="text-center">
            No History
          </td>
        </tr>
      @endif
      </tbody>
    </table>
  </div>
</div>
