@extends('admin.layouts.master') @section('title', $title) @section('content')
@include('admin.inc.breadcrumb')

{{ $title }} #{{ $row->id }}

@if(isset($row->phone)) @endif @if(isset($row->company)) @endif @if(is_file('uploads/quote/'.$row->file_path)) @endif
{{ __('dashboard.name') }} : {{ $row->name }}
{{ __('dashboard.email') }} : {{ $row->email }}
{{ __('dashboard.phone') }} : {{ $row->phone }}
{{ __('dashboard.company') }} : {{ $row->company }}
{{ __('dashboard.address') }} : {{ $row->address }}
{{ __('dashboard.city') }} : {{ $row->city }}
{{ __('dashboard.quote_files') }} : {{ __('dashboard.download') }}

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

@foreach($row->services as $service) {{ $service->title }} @endforeach
@if(isset($row->message))

{{ __('dashboard.note') }}: {!! strip_tags($row->message, '


{{ __('dashboard.sidebar') }}

{{ __('dashboard.total_amount') }}: @if(isset($row->amount)) {{ $row->amount }} {{ __('common.currency') }} @else {{ __('dashboard.no_value') }} @endif


{{ __('dashboard.status') }}: @if( $row->status == 1 ) {{ __('dashboard.pending') }} @elseif( $row->status == 2 ) {{ __('dashboard.estimated') }} @elseif( $row->status == 3 ) {{ __('dashboard.approved') }} @elseif( $row->status == 0 ) {{ __('dashboard.rejected') }} @endif


{{ __('dashboard.prefer_contact') }} @if( $row->prefer_contact == 1 ) {{ __('dashboard.phone') }}: {{ $row->phone }} @elseif( $row->prefer_contact == 2 ) {{ __('dashboard.email') }}: {{ $row->email }} @endif


{{ __('dashboard.send_mail') }} :
@php $template_estimated = \App\Models\EmailTemplate::template('quote-estimated'); @endphp @if(isset($template_estimated)) {{ __('dashboard.estimate') }} @endif @php $template_approved = \App\Models\EmailTemplate::template('quote-approved'); @endphp @if(isset($template_approved)) @include($view.'.approve') @endif @php $template_rejected = \App\Models\EmailTemplate::template('quote-rejected'); @endphp @if(isset($template_rejected)) @include($view.'.reject') @endif
@if($row->status != 0)
@php $template_invoice = \App\Models\EmailTemplate::template('invoice-send'); @endphp @if(isset($template_invoice)) {{ __('dashboard.create_invoice') }} @endif
@endif

{{ __('dashboard.invoice') }} {{ __('dashboard.list') }}

@foreach( $row->invoices as $key => $row ) @endforeach
{{ __('dashboard.sl') }} {{ __('dashboard.invoice_no') }} {{ __('dashboard.name') }} {{ __('dashboard.email') }} {{ __('dashboard.invoice_date') }} {{ __('dashboard.invoice_type') }} {{ __('dashboard.status') }}
{{ $key + 1 }} #{{ $row->id }} {{ $row->name }} {{ $row->email }} {{ date('h:i:s A | d-M-y', strtotime($row->created_at)) }} @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 @if( $row->status == 1 ) {{ __('dashboard.pending') }} @elseif( $row->status == 2 ) {{ __('dashboard.paid') }} @elseif( $row->status == 0 ) {{ __('dashboard.canceled') }} @endif
@endsection