@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') }}

@stack('name_input_start') {{ $bill->vendor_name }}
@stack('name_input_end') @stack('address_input_start') {!! nl2br($bill->vendor_address) !!}
@stack('address_input_end') @stack('tax_number_input_start') @if ($bill->vendor_tax_number) {{ trans('general.tax_number') }}: {{ $bill->vendor_tax_number }}
@endif @stack('tax_number_input_end')
@stack('phone_input_start') @if ($bill->vendor_phone) {{ $bill->vendor_phone }}
@endif @stack('phone_input_end') @stack('email_start') {{ $bill->vendor_email }} @stack('email_input_end')
@stack('bill_number_input_start') @stack('bill_number_input_end') @stack('order_number_input_start') @if ($bill->order_number) @endif @stack('order_number_input_end') @stack('billed_at_input_start') @stack('billed_at_input_end') @stack('due_at_input_start') @stack('due_at_input_end')
{{ 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) }}
@stack('actions_th_start') @stack('actions_th_end') @stack('name_th_start') @stack('name_th_end') @stack('quantity_th_start') @stack('quantity_th_end') @stack('price_th_start') @stack('price_th_end') @stack('taxes_th_start') @stack('taxes_th_end') @stack('total_th_start') @stack('total_th_end') @foreach($bill->items as $item) @stack('actions_td_start') @stack('actions_td_end') @stack('name_td_start') @stack('name_td_end') @stack('quantity_td_start') @stack('quantity_td_end') @stack('price_td_start') @stack('price_td_end') @stack('taxes_td_start') @stack('taxes_td_end') @stack('total_td_start') @stack('total_td_end') @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)
@stack('notes_input_start') @if ($bill->notes)
{{ trans_choice('general.notes', 2) }}
{{ $bill->notes }}
@endif @stack('notes_input_end')
@foreach ($bill->totals as $total) @if ($total->code != 'total') @stack($total->code . '_td_start') @stack($total->code . '_td_end') @else @if ($bill->paid) @endif @stack('grand_total_td_start') @stack('grand_total_td_end') @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