@extends('layouts/contentNavbarLayout') @section('title', 'Заявки') @section('content')
Мои заявки
@foreach ($orders as $order) @if($order['invoices_number'] > 1) @foreach($order['invoices'] as $invoice) @if($invoice == $order['invoices'][0]) @continue @endif @endforeach @endif @endforeach
Дата Сумма счета Валюта План дата отгрузки Оплачено Отгрузка Сумма отгрузки Долг
{{$order['number']}} {{date('d.m.Y', strtotime($order['date']))}} {{StrFormat::money($order['total'])}} {{$order['currency']}} {{date('d.m.Y', strtotime($order['date']))}} {{StrFormat::money($order['payment_sum'])}} Отгрузка №{{$order['invoices'][0]['number'] ?? '0'}} {{StrFormat::money($order['invoices'][0]['total'] ?? '0')}} {{StrFormat::money($order['debt'])}}
Отгрузка №{{$invoice['number']}} {{$invoice['total']}}

@include('layouts/pagination', [ 'pages' => $pages, 'page' => $page ])
@endsection