mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 02:29:31 -04:00 
			
		
		
		
	Merge pull request #6793 from beganovich/v5-722
Show company logo on password reset pages
This commit is contained in:
		
						commit
						3fbfc7b4ba
					
				| @ -67,9 +67,10 @@ class ContactResetPasswordController extends Controller | ||||
|         $account_id = $request->get('account_id'); | ||||
|         $account = Account::find($account_id); | ||||
|         $db = $account->companies->first()->db; | ||||
|         $company = $account->companies->first(); | ||||
| 
 | ||||
|         return $this->render('auth.passwords.reset')->with( | ||||
|             ['token' => $token, 'email' => $request->email, 'account' => $account, 'db' => $db] | ||||
|             ['token' => $token, 'email' => $request->email, 'account' => $account, 'db' => $db, 'company' => $company] | ||||
|         ); | ||||
|     } | ||||
| 
 | ||||
|  | ||||
| @ -13,9 +13,13 @@ | ||||
|         <div class="{{ $account && !$account->isPaid() ? 'col-span-2' : 'col-span-3' }} h-screen flex"> | ||||
|             <div class="m-auto w-1/2 md:w-1/3 lg:w-1/4"> | ||||
|                 @if($account && !$account->isPaid()) | ||||
|                 <div> | ||||
|                     <img src="{{ asset('images/invoiceninja-black-logo-2.png') }}" class="border-b border-gray-100 h-18 pb-4" alt="Invoice Ninja logo"> | ||||
|                 </div> | ||||
|                     <div> | ||||
|                         <img src="{{ asset('images/invoiceninja-black-logo-2.png') }}" class="border-b border-gray-100 h-18 pb-4" alt="Invoice Ninja logo"> | ||||
|                     </div> | ||||
|                 @elseif(isset($company) && !is_null($company)) | ||||
|                     <div> | ||||
|                         <img src="{{ asset($company->present()->logo()) }}" class="h-14 mb-10" alt="{{ $company->present()->name() }} logo"> | ||||
|                     </div> | ||||
|                 @endif | ||||
|                 <div class="flex flex-col"> | ||||
|                     <h1 class="text-center text-3xl">{{ ctrans('texts.password_recovery') }}</h1> | ||||
|  | ||||
| @ -13,11 +13,14 @@ | ||||
|        | ||||
|         <div class="{{ $account && !$account->isPaid() ? 'col-span-2' : 'col-span-3' }} h-screen flex"> | ||||
|             <div class="m-auto w-1/2 md:w-1/3 lg:w-1/4"> | ||||
| 
 | ||||
|                 @if($account && !$account->isPaid()) | ||||
|                 <div> | ||||
|                     <img src="{{ asset('images/invoiceninja-black-logo-2.png') }}" class="border-b border-gray-100 h-18 pb-4" alt="Invoice Ninja logo"> | ||||
|                 </div> | ||||
|                     <div> | ||||
|                         <img src="{{ asset('images/invoiceninja-black-logo-2.png') }}" class="border-b border-gray-100 h-18 pb-4" alt="Invoice Ninja logo"> | ||||
|                     </div> | ||||
|                 @elseif(isset($company) && !is_null($company)) | ||||
|                     <div> | ||||
|                         <img src="{{ asset($company->present()->logo()) }}" class="h-14 mb-10" alt="{{ $company->present()->name() }} logo"> | ||||
|                     </div> | ||||
|                 @endif | ||||
|                 <div class="flex flex-col"> | ||||
|                     <h1 class="text-center text-3xl">{{ ctrans('texts.password_recovery') }}</h1> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user