@extends("layouts.admin.app") @section("page-title") {{__("Dashboard")}} @endSection @section("page-nav-title")

{{__("Sales Orders History")}}

{{__("all-sales-orders-history")}}

@endsection @section("content") @include("includes.dialog") {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
    --}} {{--
  • Beverages--}} {{--
      --}} {{--
    • Water
    • --}} {{--
    • Coffee
    • --}} {{--
    • Tea--}} {{--
        --}} {{--
      • Black Tea
      • --}} {{--
      • White Tea
      • --}} {{--
      • Green Tea--}} {{--
          --}} {{--
        • Sencha
        • --}} {{--
        • Gyokuro
        • --}} {{--
        • Matcha
        • --}} {{--
        • Pi Lo Chun
        • --}} {{--
        --}} {{--
      • --}} {{--
      --}} {{--
    • --}} {{--
    --}} {{--
  • --}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{----}}

{{__("Total Adjustments " . ": ". $count)}}

@php $adjustment_number =0; @endphp @foreach($vouchers_history as $key => $voucher)

{{ ++$adjustment_number ."- ". "Date of Update" .": ". $voucher->created_at}}


{{__("Voucher Info:")}}
{{__("number") . ":" }} {{$voucher["number"] }}
{{__("date") . ":"}}{{$voucher["date"] }}
{{__("classification") . ":"}} {{$voucher->classification->name }}
{{__("client-name") . ":"}} {{$voucher->client->{\Illuminate\Support\Facades\App::getLocale()."_name"} }}
{{__("representative-name") . ":"}}{{$voucher->representative->name }}
{{__("purchase-order-number") . ":"}}{{$voucher["purchase_order_number"] }}
{{__("store") . ":"}} {{$voucher->store->name }}

{{__("Voucher Details:")}}
@foreach($voucher->voucherDetailsHistory as $key => $details) @endforeach
# {{__('code')}} {{__('item')}} {{__('unit')}} {{__('quantity')}} {{__('unit-price')}} {{__('total')}} {{__('notes')}} {{__('Sub Items')}}
{{++$key}} {{$details->item->getItemCode()}} {{$details->item->name}} {{$details->item->unit->unit_name}} {{$details->quantity}} {{$details->price . " SAR"}} {{$details->price * $details->quantity}} {{$details->notes}}
@endforeach
@endsection @section("scripts") @endsection