@extends('admin.layouts.master') @section('title', $title) @section('content')
@include('admin.inc.breadcrumb')
{{ __('dashboard.back') }} @if(isset($row->quote_id)) {{ __('dashboard.quote') }} @endif

{{ __('dashboard.invoice') }} #{{ $row->id }}

{{ __('dashboard.hello') }}, {{ $row->name }}

{{ __('dashboard.invoice_date') }} : {{ date('d-M-y', strtotime($row->invoice_date)) }}

@if(isset($row->due_date))

{{ __('dashboard.due_date') }} : {{ date('d-M-y', strtotime($row->due_date)) }}

@endif

{{ __('dashboard.invoice_type') }} : @if( $row->invoice_type == 0 ) {{ __('dashboard.estimate') }} @elseif( $row->invoice_type == 1 ) {{ __('dashboard.advance') }} @elseif( $row->invoice_type == 2 ) {{ __('dashboard.interval') }} @elseif( $row->invoice_type == 3 ) {{ __('dashboard.milestone') }} @elseif( $row->invoice_type == 4 ) {{ __('dashboard.final') }} @elseif( $row->invoice_type == 5 ) {{ __('dashboard.full') }} @endif

{{ __('dashboard.invoice_status') }} : @if( $row->status == 1 ) {{ __('dashboard.pending') }} @elseif( $row->status == 2 ) {{ __('dashboard.paid') }} @elseif( $row->status == 0 ) {{ __('dashboard.canceled') }} @endif

@if(isset($row->quote_id))

{{ __('dashboard.quote_no') }} : #{{ $row->quote_id }}

@endif
{{ __('dashboard.billing_address') }}
{{ __('dashboard.name') }}: {{ $row->name }}
{{ __('dashboard.email') }}: {{ $row->email }}
@if(isset($row->phone)) {{ __('dashboard.phone') }}: {{ $row->phone }}
@endif @if(isset($row->company)) {{ __('dashboard.company') }}: {{ $row->company }}
@endif {{ __('dashboard.address') }}: {{ $row->address }}
@if(isset($row->city)) {{ __('dashboard.city') }}: {{ $row->city }}
@endif @if(isset($row->reference)) {{ __('dashboard.reference') }}: {{ $row->reference }}
@endif
@if(count($row->services) > 0) {{ __('dashboard.services') }}: @foreach($row->services as $service) {{ $service->title }} @endforeach

@endif

{{ __('dashboard.note') }}:

{!! $row->message !!}
@if(isset($row->service_charge))

{{ __('dashboard.service_bill') }}: {{ $row->service_charge }} {{ __('common.currency') }}

@endif @if(isset($row->tax))

{{ __('dashboard.tax_charge') }}: {{ $row->tax }} {{ __('common.currency') }}

@endif @if(isset($row->shipping))

{{ __('dashboard.shipping_charge') }}: {{ $row->shipping }} {{ __('common.currency') }}

@endif

{{ __('dashboard.total') }}: {{ $row->total_amount }} {{ __('common.currency') }}

@if(isset($row->discount_amount))

{{ __('dashboard.discount') }}: {{ $row->discount_amount }} {{ __('common.currency') }}

@endif

{{ __('dashboard.payable') }}: {{ $row->invoice_amount }} {{ __('common.currency') }}

@include($view.'.edit') @include('admin.inc.delete') @if(is_file('uploads/invoice/'.$row->attach)) {{ __('dashboard.attach') }} @endif {{ __('dashboard.print') }}
@endsection