@extends('layouts.bill') @section('title', trans_choice('general.bills', 1) . ': ' . $bill->bill_number) @section('content')
@if ($logo) @endif
{{ setting('general.company_name') }}
{!! nl2br(setting('general.company_address')) !!}
@if (setting('general.company_tax_number')) {{ trans('general.tax_number') }}: {{ setting('general.company_tax_number') }}
@endif
@if (setting('general.company_phone')) {{ setting('general.company_phone') }}
@endif {{ setting('general.company_email') }}
{{ trans('bills.bill_from') }}
{{ $bill->vendor_name }}
{!! nl2br($bill->vendor_address) !!}
@if ($bill->vendor_tax_number) {{ trans('general.tax_number') }}: {{ $bill->vendor_tax_number }}
@endif
@if ($bill->vendor_phone) {{ $bill->vendor_phone }}
@endif {{ $bill->vendor_email }}
@if ($bill->order_number) @endif
{{ trans('bills.bill_number') }}: {{ $bill->bill_number }}
{{ trans('bills.order_number') }}: {{ $bill->order_number }}
{{ trans('bills.bill_date') }}: {{ Date::parse($bill->billed_at)->format($date_format) }}
{{ trans('bills.payment_due') }}: {{ Date::parse($bill->due_at)->format($date_format) }}
@foreach($bill->items as $item) @endforeach
{{ trans_choice('general.items', 1) }} {{ trans('bills.quantity') }} {{ trans('bills.price') }} {{ trans('bills.total') }}
{{ $item->name }} @if ($item->sku)
{{ trans('items.sku') }}: {{ $item->sku }} @endif
{{ $item->quantity }} @money($item->price, $bill->currency_code, true) @money($item->total, $bill->currency_code, true)
@if ($bill->notes)

{{ trans_choice('general.notes', 2) }}:

{{ $bill->notes }}

@endif
@foreach($bill->totals as $total) @if ($total->code != 'total') @else @if ($bill->paid) @endif @endif @endforeach
{{ trans($total->title) }}: @money($total->amount, $bill->currency_code, true)
{{ trans('invoices.paid') }}: - @money($bill->paid, $bill->currency_code, true)
{{ trans($total->name) }}: @money($total->amount - $bill->paid, $bill->currency_code, true)
@endsection