{{ $details['user']['name'] }}
{!! $details['user']['details'] !!}
#{{ $details['pos_id'] }}
{!! isset($details['customer']['name']) ? '' : $details['customer']['details'] !!}
{!! isset($details['customer']['name']) ? 'Name: ' . (isset($customer_detail->name) ? $customer_detail->name : '') : '' !!}
{!! isset($details['customer']['address']) ? 'Address: ' . $details['customer']['address'] : '' !!}
{!! isset($details['customer']['email']) ? 'Email: ' . (isset($customer_detail->email) ? $customer_detail->email : '') : '' !!}
{!! isset($details['customer']['phone_number']) ? 'Phone: ' . (isset($customer_detail->phone) ? $customer_detail->phone : '') : '' !!}
{!! isset($details['date']) ? 'Date of POS: ' . $details['date'] : '' !!}
{!! isset($details['store']['details']) ? 'Store Name: ' . $details['store']['details'] : '' !!}
{{__('Items')}}
@foreach ($sales['data'] as $key => $value)
{{ $value['product_name'] }}
{{ __('Quantity:') }}
{{ $value['quantity'] }}
{{__('Price:')}}
{{ $value['price'] }}
@php
$taxes = $value['tax'];
@endphp
{{__('Tax:')}}
@if(!empty($value['tax']))
@foreach($taxes as $key => $tax)
{{ $tax['tax_name'] }} {{ $tax['tax'] }}%
@endforeach
@else
-
@endif
{{__('Tax Amount:')}}
{{ $value['tax_amount'] }}
{{__('Sub Total:')}}
{{ $value['subtotal'] }}
@endforeach
{{__('Discount:')}}
{{ $sales['discount'] }}
{{__('Total:')}}
{{ $sales['total'] }}
{{__('Thank You For Shopping With Us. Please visit again.')}}