@extends('layouts.app') @section('headScripts') @endsection @section('content')
@if(count($invoices) > 0) @foreach ($invoices as $item) @endforeach @else Seçili aralıkta veri bulunmuyor. @endif
Hareket Tipi Tarihi Cari Hesap Numara Durum Detaylar Ara toplam Vergiler Genel Toplam
@if($item->type == 'sales_invoice')

@if ($item->belgeOid && $item->durum) E-SATIŞ FATURASI @else SATIŞ FATURASI @endif

@elseif($item->type == 'purchase_invoice')

@if ($item->belgeOid && $item->durum) E-ALIŞ FATURASI @else ALIŞ FATURASI @endif

@elseif($item->type == 'sales_receipt')

@elseif($item->type == 'purchase_receipt')

@endif
{{ date('d.m.Y', strtotime($item->date)) }} @if ($item->type == 'sales_invoice' || $item->type == 'purchase_invoice') @else ($item->type == 'sales_receipt' || $item->type == 'purchase_receipt') @endif @if (!is_null($item->gonderim_durumu)) @switch($item->gonderim_durumu) @case(-2) İptal @break @case(-1) Kuyrukta @break @case(0) Hata @break @case(1) Hazır @break @case(2) Gönderildi @break @case(3) GİB Yanıtı @break @case(4) Alıcıya Ulaştı @break @default ? @endswitch @endif @if ($item->type == 'sales_invoice' || $item->type == 'purchase_invoice') @foreach($item->lines as $line) {{ $line->product->name }}{{ !$loop->last ? ',' : '' }} @endforeach @elseif ($item->type == 'sales_receipt' || $item->type == 'purchase_receipt') {{ $item->note }} @endif {{ number_format($item->total_sub, 2, ',', '.') }} {{ number_format($item->total_vat, 2, ',', '.') }} {{ number_format($item->total_amount, 2, ',', '.') }} {{ $item->currency }}
@endsection @section('scripts') @endsection