@extends('layouts.production') @section('content')

@if ($invoice->deposit > 0) {{ Trans('invoices.menu') }} @else {{ Trans('invoices.paid') }} @endif {{ Trans('invoices.detail') }}

@include('layouts.includes.message')
@if(isset($customer))

{{ Trans('customers.menu')}}

{{ Trans('invoices.full_name') }} {{ $customer->fullName() }}
{{ Trans('customers.tel') }} {{ $customer->tel }}
{{ HTML::image($customer->photo, $customer->first_name, [ 'class' => 'img-responsive img-thumbnail', ]) }}
@endif

{{ Trans('invoices.menu')}}

@if($invoice->changed > 0) @endif @if($invoice->deposit > 0) @endif
{{ Trans('invoices.id') }} {{ InvoiceHelper::convertInvoiceNumber($invoice->id) }}
{{ Trans('invoices.total') }} {{ money($invoice->total) }}
{{ Trans('invoices.recieved') }} {{ money($invoice->recieved) }}
{{ Trans('invoices.changed') }} {{ money($invoice->changed) }}
{{ Trans('invoices.deposit') }} {{ money($invoice->deposit) }}
{{ Trans('invoices.created_at') }} {{ $invoice->created_at }}
@if ($invoice->deposit > 0 || (isset($payables) && count($payables) > 0)) @include('Invoices.inc.form') @endif @if(isset($products) && count($products) > 0) @include('Invoices.inc.products') @endif
@endsection