@extends('companyuser::layouts.master') @section('title', __('sales::invoices.debit_note_show')) @section('extra-styles') @endsection @section('breadcrumb') @endsection @section('content')
@can('sales.invoices.export') @endcan
@can('sales.invoices.view') @if(LaravelLocalization::getCurrentLocale() === 'en') @else @endif @endcan @can('sales.invoices.export') @endcan
@if( $invoice->customer->deleted_at || !$invoice->customer->status)
@lang('sales::invoices.customer_deleted_or_deactivated')
@endif @include('companyuser::errors.lists') @include('companyuser::errors.all')
{{__('sales::debit_notes.Reference ID')}}
{{$invoice->reference}}
{{__('sales::invoices.Date')}}
{{ $invoice->formatDate($invoice->date) }}
{{__('sales::invoices.Customer')}}
{{$invoice->customer->name}}
{{__('sales::invoices.payment_term')}}
{{$invoice->paymentTerm ? $invoice->paymentTerm->name : __('sales::invoices.cash')}}
@if(!$invoice->paymentTerm)
{{__('sales::invoices.Payment Account')}}
{{$invoice->paymentAccount->name ?? ''}}
@else
{{__('sales::invoices.due_date')}}
{{ $invoice->formatDate($invoice->due_date) }}
@endif
{{__('products::cost_center.Cost Center')}}
{{$costCenter?$costCenter['code'] . ' - ' . $costCenter['name_' . app()->getLocale()]: __('products::cost_center.main center') }}
{{__('sales::invoices.Description')}}
{{$invoice->description }}
{{__('sales::customers.created_by')}}
@if($invoice->created_by == null) @lang('accounting::assets.System') @elseif($invoice->created_by == auth()->user()->id) @lang('accounting::assets.You') @else {{$invoice->addedBy->uname}} @endif
@if($invoice->invoiceReturn()->exists()) @endif @if($invoice->parent) @endif
@lang('sales::invoices.supply_date')
{{ $invoice->supply_date ? $invoice->formatDate($invoice->supply_date) : '' }}
@lang('sales::invoices.time')
{{ $invoice->formatTime($invoice->date) }}

@lang('sales::estimates.customer_details') :

@php $mobile = $invoice->customer->mobile ? str_replace("+", "00", App\Enums\PhoneCode::get($invoice->customer->country_code)) . '-' . $invoice->customer->mobile : '' @endphp @if($invoice->customer && $invoice->customer->tax_number) @endif
@lang('sales::invoices.Phone'): {{$mobile}}
@lang('sales::invoices.Email'): {{$invoice->customer->email}}
@lang('sales::customers.Tax Number'): {{$invoice->customer->tax_number}}