@if(!$reportColors->isEmpty())
@foreach($reportColors as $key => $reportColor)
@if($key == 0)
@endif
@if($key < 2)
@endif
@if($key == 1)
@endif
@if($key == 2)
@endif
@if($key > 1)
@endif
@if($key == 3)
@endif
@endforeach
@endif
@if(!empty($item->fan_courier_file))
FanCourier
@endif
Date despre client
Nume
{{isset($item) && isset($item->client) ? $item->client['name'] : ''}}
Telefon
{{isset($item) && isset($item->client) ? $item->client['phone'] : ''}}
Adresa
{{isset($item) && isset($item->client) ? $item->client['address'] : ''}}
Companie client
{{isset($item) && isset($item->client) ? $item->client['company'] : ''}}
Tara
{{$item->client->country->name}}
Sursa clientului
{{isset($item) && isset($item->client) ? $item->client['source_client'] : ''}}
Echipa clientului
{{ !is_null($item->packageTeam) ? $item->packageTeam->name : '' }}
@if(isset($item->client) && $item->client->fan_courier == 1)
Fan Courier
Judet
{{!is_null($item->client->district) ? $item->client->district->name : ''}}
Localitate
{{!is_null($item->client->village) ? $item->client->village->name : ''}}
@if(isset($item) && isset($item->client) && $item->client->delivery_fan == 0)
Strada Fan Courier
{{isset($item) && isset($item->street) ? (!empty($item->street->type) && !empty($item->street->street) ? $item->street->street : 'Principala') : ''}}
Cod postal
{{$item->client->postal_code or ''}}
Nr. strazii
{{isset($item) ? $item->street_number : ''}}
Bloc
{{isset($item) ? $item->building_number : ''}}
Scara
{{isset($item) ? $item->entrance : ''}}
Etaj
{{isset($item) ? $item->floor : ''}}
Apartament
{{isset($item) ? $item->flat : ''}}
@else
Livrare sediu FAN
{{isset($item) && isset($item->deliveryOfficeStreet) ? $item->deliveryOfficeStreet->street : ''}}
@endif
Km. exteriori
{{isset($item) ? $item->extern_km : ''}}
Tip serviciu
{{!is_null($item->serviceType) ? $item->serviceType->name : ''}}
Nr. plicuri
{{$item->envelopes or ''}}
Nr. colete
{{$item->parcels or ''}}
Greutate totala (kg)
{{$item->total_weight or ''}}
Plata expeditiei
{{!empty($item->payments) ? ucfirst($item->payments) : ''}}
Total de plata cash
{{!empty($item->total_payment_tva) ? $item->total_payment_tva : 0}}
LEI + TVA
Ramburs numerar
{{$item->ramburs or 0}}
Restituire
{{$item->refund or 0}}
Plata transport ramburs la
{{!empty($item->payments_transport) ? ucfirst($item->payments_transport) : ''}}
Observatii
{{$item->projectObservations}}
Continut
{{$item->content or ''}}
@endif
Date despre colet
Finisat de
{{!is_null($item->userFinished) ? $item->userFinished->name : ''}}
Serie colet
{{$item['serial'] or ''}}
Nume colet
{{$item['name'] or ''}}
Pretul coletului
{{$item['price'] or ''}} {{!is_null($item->currency) ? $item->currency->name : ''}}
Metoda de plata
{{ !is_null($item->packagePaymentMethod) ? $item->packagePaymentMethod->name : '' }}
@if(!$item->projects->isEmpty())
Date despre {{$item->projects()->count() > 1 ? 'proiecte' : 'proiect'}}
@foreach($item->projects as $project)
{{ $project->price or 0 }} {{!is_null($item->currency) ? $item->currency->name : ''}}
@if(!empty($project->file))
@endif
@if($project->is_canceled == 1 && !empty($project->cancel_reason))
Motivul anularii
{{$project->cancel_reason}}
@endif
Etapele parcurse
@include('timeline', [
'initComments'=>[
'user' => $project->userDraft,
'comments' => $project->commentSectionProjectInit,
'available_status' => in_array('draft', $packageStatusesPermanames)
],
'designComments'=>[
'user' => $project->userDesign,
'comments' => $project->commentSectionProjectDesign,
'available_status' => in_array('design', $packageStatusesPermanames)
],
'layoutComments'=>[
'user' => $project->userLayout,
'comments' => $project->commentSectionProjectLayout,
'available_status' => in_array('layout', $packageStatusesPermanames)
],
'colorComments'=>[
'user' => $project->userColor,
'comments' => $project->commentSectionProjectColor,
'available_status' => in_array('color', $packageStatusesPermanames)
],
'cropComments'=>[
'user' => $project->userCrop,
'comments' => $project->commentSectionProjectCrop,
'available_status' => in_array('crop', $packageStatusesPermanames)
],
'assemblyComments'=>[
'user' => $project,
'comments' => $project->commentSectionProjectAssembly,
'available_status' => in_array('assembly', $packageStatusesPermanames)
]
])
@endforeach
@endif