JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr@extends('layouts.admin') @section('page-title') {{ __('Manage Promotion') }} @endsection @section('breadcrumb') @endsection @section('action-button') @can('Create Promotion') @endcan @endsection @section('content')
{{--
--}}
@role('company') @endrole @if (Gate::check('Edit Promotion') || Gate::check('Delete Promotion')) @endif @foreach ($promotions as $promotion) @role('company') @endrole @endforeach
{{ __('Employee Name') }}{{ __('Designation') }} {{ __('Promotion Title') }} {{ __('Promotion Date') }} {{ __('Description') }}{{ __('Action') }}
{{ !empty($promotion->employee_id) ? $promotion->employee->name : '' }}{{ !empty($promotion->designation_id) ? $promotion->designation->name : '' }} {{ $promotion->promotion_title }} {{ \Auth::user()->dateFormat($promotion->promotion_date) }} {{ $promotion->description }} @if (Gate::check('Edit Promotion') || Gate::check('Delete Promotion')) @can('Edit Promotion') @endcan @can('Delete Promotion')
{!! Form::open(['method' => 'DELETE', 'route' => ['promotion.destroy', $promotion->id], 'id' => 'delete-form-' . $promotion->id]) !!}
@endcan
@endif
@endsection