@extends('layouts.app') @section('title', __('order.receipt')) @section('content')
@include('layouts.session')
@can(['order.edit']) {{ __('app.edit') }} @endcan @can(['schedule.create', 'schedule.edit']) {{ __('schedule.schedule') }} @endcan @can(['order.view']) {{ __('order.timeline') }} @endcan

{{ app('company')['name'] }}

{{ app('company')['address'] }}
{{ __('order.receipt_to') }}:

{{ $order->party->first_name .' '. $order->party->last_name }}

{{ $order->party->address }}

{{ __('order.receipt') }} #{{ $order->order_code }}

{{ __('order.date_of_receipt') }}: {{ $order->formatted_order_date }}
@php $i=1; @endphp @foreach($order->orderedProducts as $product) @endforeach
# {{ __('app.description') }} {{ __('order.start_date') }} {{ __('order.end_date') }} {{ __('app.price') }} {{ __('app.discount') }} {{ __('tax.tax') }} TOTAL
{{ $i++ }}

{{ $product->service->name }}

{{ $product->service->description }}
{{ $product->formatted_start_date }}
{{ $product->start_time }}
{{ $product->formatted_end_date }}
{{ $product->end_time }}
{{ $product->unit_price }} {{ $product->discount }}
({{ $product->discount_type }})
{{ $product->tax->name }} {{ $product->total_price_with_tax }}
{{ __('app.subtotal') }} {{ ($order->total_amount) - ($order->orderedProducts->sum('tax_amount')) }}
{{ __('tax.total') }} {{ $order->orderedProducts->sum('tax_amount') }}
{{ __('app.grand_total') }} {{$order->total_amount}}
{{ __('app.thank_you') }}!
{{ __('app.computer_generated_receipt') }}
@endsection @section('js') @include("plugin.export") @endsection